MDN self-hosted library · e01.org

CSSGroupingRule: cssRules property

CSSOM

Open notebook · 1 cells web-api-instance-property upstream source

CSSOM

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

Browser compatibility