CSSRule
Generated from idl/cssom.webidl when the site was built at 7aa23e2.
CSSRule is an interface in idl/cssom.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| CSS object model | Widely available | Partial 55% 123 of 221 subtests pass | 4 |
Members
Section titled “Members”cssText
Section titled “cssText”attribute DOMString cssText;int32_t niso_css_rule_get_css_text(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_css_rule_set_css_text(niso_dom* dom, niso_handle self, const char* value, size_t value_len);parentRule
Section titled “parentRule”readonly attribute CSSRule? parentRule;int32_t niso_css_rule_get_parent_rule(niso_dom* dom, niso_handle self, niso_handle* out);parentStyleSheet
Section titled “parentStyleSheet”readonly attribute CSSStyleSheet? parentStyleSheet;int32_t niso_css_rule_get_parent_style_sheet(niso_dom* dom, niso_handle self, niso_handle* out);readonly attribute unsigned short type;int32_t niso_css_rule_get_type(niso_dom* dom, niso_handle self, uint16_t* out);STYLE_RULE
Section titled “STYLE_RULE”const unsigned short STYLE_RULE = 1;CHARSET_RULE
Section titled “CHARSET_RULE”const unsigned short CHARSET_RULE = 2;IMPORT_RULE
Section titled “IMPORT_RULE”const unsigned short IMPORT_RULE = 3;MEDIA_RULE
Section titled “MEDIA_RULE”const unsigned short MEDIA_RULE = 4;FONT_FACE_RULE
Section titled “FONT_FACE_RULE”const unsigned short FONT_FACE_RULE = 5;PAGE_RULE
Section titled “PAGE_RULE”const unsigned short PAGE_RULE = 6;MARGIN_RULE
Section titled “MARGIN_RULE”const unsigned short MARGIN_RULE = 9;NAMESPACE_RULE
Section titled “NAMESPACE_RULE”const unsigned short NAMESPACE_RULE = 10;KEYFRAMES_RULE
Section titled “KEYFRAMES_RULE”const unsigned short KEYFRAMES_RULE = 7;KEYFRAME_RULE
Section titled “KEYFRAME_RULE”const unsigned short KEYFRAME_RULE = 8;SUPPORTS_RULE
Section titled “SUPPORTS_RULE”const unsigned short SUPPORTS_RULE = 12;