CSSGroupingRule
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
The CSSGroupingRule
interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.
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
Specification |
---|
CSS Object Model (CSSOM) # the-cssgroupingrule-interface |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSGroupingRule | ||||||||||||
cssRules | ||||||||||||
deleteRule | ||||||||||||
insertRule |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.