CSSGroupingRule: cssRules property

The cssRules property of the CSSGroupingRule interface returns a CSSRuleList containing a collection of CSSRule objects.

Value

Examples

js

let myRules = document.styleSheets[0].cssRules;
console.log(myRules);

Specifications

Specification
CSS Object Model (CSSOM)
# dom-cssgroupingrule-cssrules

Browser compatibility

BCD tables only load in the browser