The CSSGroupingRule
interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.
The CSSGroupingRule
interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.
This interface also inherits properties from CSSRule
.
CSSGroupingRule.cssRules
Read only
Returns a CSSRuleList
of the CSS rules in the media rule.
This interface also inherits methods from CSSRule
.
CSSGroupingRule.deleteRule
Deletes a rule from the style sheet.
CSSGroupingRule.insertRule
Inserts a new style rule into the current style sheet.
Specification |
---|
CSS Object Model (CSSOM) # the-cssgroupingrule-interface |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
CSSGroupingRule |
45 | 12 | 20 | No | 32 | 14.13TheCSSGroupingRule interface itself is not present, but many of the methods are available on various interfaces such as the CSSMediaRule and CSSPageRule interfaces. |
45 | 45 | 20 | 32 | 14.52TheCSSGroupingRule interface itself is not present, but many of the methods are available on various interfaces such as the CSSMediaRule and CSSPageRule interfaces. |
5.0 |
cssRules |
45 | 12 | 20 | No | 32 | 3 | 45 | 45 | 20 | 32 | 2 | 5.0 |
deleteRule |
45 | 12 | 20 | No | 32 | 3 | 45 | 45 | 20 | 32 | 2 | 5.0 |
insertRule |
45 | 12 | 20 | No | 32 | 3 | 45 | 45 | 20 | 32 | 2 | 5.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule