Firefox Tomorrow

web api instance property

CSSGroupingRule: cssRules property

View on MDN ↗

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

Value

a CSSRuleList.

Examples

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.