Skip to content

CSSStyleRule

Generated from idl/cssom.webidl when the site was built at 7aa23e2.

CSSStyleRule is an interface in idl/cssom.webidl, inheriting CSSGroupingRule, exposed in Window. What it does is on MDN; this page says what niso has of it.

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 3
attribute
attribute DOMString selectorText;
int32_t niso_css_style_rule_get_selector_text(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_css_style_rule_set_selector_text(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
int32_t niso_css_style_rule_get_style(niso_dom* dom, niso_handle self, niso_handle* out);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • cssRules (Nesting)
  • deleteRule (Nesting)
  • insertRule (Nesting)
  • styleMap (CSS typed object model)