W3cubDocs

/Web APIs

CSSGroupingRule

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

CSSRule CSSGroupingRule

Instance properties

This interface also inherits properties from CSSRule.

CSSGroupingRule.cssRules Read only

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

Instance 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 14.1
3The CSSGroupingRule 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.5
2The CSSGroupingRule 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

See also

© 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