The CSSGroupingRule
interface of the CSS Object Model
represents any CSS at-rule
that contains other rules nested within it.
CSSGroupingRule
Properties
This interface also inherits properties from CSSRule
.
-
CSSGroupingRule.cssRules
Read 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
Specification |
---|
CSS Object Model (CSSOM) # the-cssgroupingrule-interface |
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
|
45
|
45
|
20
|
32
|
14.5
|
5.0
|
cssRules |
45
|
12
|
20
|
No
|
32
|
14.1
|
45
|
45
|
20
|
32
|
14.5
|
5.0
|
deleteRule |
45
|
12
|
20
|
No
|
32
|
14.1
|
45
|
45
|
20
|
32
|
14.5
|
5.0
|
insertRule |
45
|
12
|
20
|
No
|
32
|
14.1
|
45
|
45
|
20
|
32
|
14.5
|
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