Back to Content

CSSGroupingRule

files/en-us/web/api/cssgroupingrule/index.md

latest984 B
Original Source

{{ APIRef("CSSOM") }}

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

{{InheritanceDiagram}}

Instance properties

This interface also inherits properties from {{domxref("CSSRule")}}.

  • {{domxref("CSSGroupingRule.cssRules")}} {{ReadOnlyInline}}
    • : Returns a {{domxref("CSSRuleList")}} of the CSS rules in the media rule.

Instance methods

This interface also inherits methods from {{domxref("CSSRule")}}.

  • {{domxref("CSSGroupingRule.deleteRule")}}
    • : Deletes a rule from the style sheet.
  • {{domxref("CSSGroupingRule.insertRule")}}
    • : Inserts a new style rule into the current style sheet.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also