CSSGroupingRule
The CSSGroupingRule
interface of the CSS Object Model
represents any CSS at-rule
that contains other rules nested within it.
Objects deriving from it:
CSSConditionRule
and its children:CSSMediaRule
andCSSSupportsRule
.CSSPageRule
Syntax
The syntax is described using the WebIDL format.
interface CSSGroupingRule : CSSRule { readonly attribute CSSRuleList cssRules; unsigned long insertRule (DOMString rule, unsigned long index); void deleteRule (unsigned long index); }
Properties common to all CSSGroupingRule instances
The CSSGroupingRule
derives from CSSRule
and inherits all properties of this class. It has one specific property:
CSSGroupingRule.cssRules
Read only- Returns a
CSSRuleList
of the CSS rules in the media rule.
Methods
Inherits methods from its ancestor CSSRule
.
CSSGroupingRule.deleteRule
- Deletes a rule from the style sheet.
CSSGroupingRule.insertRule
- Inserts a new style rule into the current style sheet.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Object Model (CSSOM) The definition of 'CSSGroupingRule' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser