CSSGroupingRule
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
TheCSSGroupingRule interface of theCSS Object Model represents any CSSat-rule that contains other rules nested within it.
In this article
Instance properties
This interface also inherits properties fromCSSRule.
CSSGroupingRule.cssRulesRead onlyReturns a
CSSRuleListof the CSS rules in the media rule.
Instance methods
This interface also inherits methods fromCSSRule.
CSSGroupingRule.deleteRuleDeletes a rule from the style sheet.
CSSGroupingRule.insertRuleInserts a new style rule into the current style sheet.
Specifications
| Specification |
|---|
| CSS Object Model (CSSOM)> # the-cssgroupingrule-interface> |