CSSGroupingRule

The CSSGroupingRule interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.

Properties

This interface also inherits properties from CSSRule.

CSSGroupingRule.cssRulesRead only

Returns a CSSRuleList of the CSS rules in the media rule.

Methods

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.

Specifications

Browser compatibility

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
No
45
45
20
32
No
5.0
cssRules
45
12
20
No
32
No
45
45
20
32
No
5.0
deleteRule
45
12
20
No
32
No
45
45
20
32
No
5.0
insertRule
45
12
20
No
32
No
45
45
20
32
No
5.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule