CSSGroupingRule.cssRules
The cssRules
property of the CSSGroupingRule
interface returns a CSSRuleList
containing a collection of CSSRule
objects.
Syntax
let cssRules = cssGroupingRule.cssRules;
Value
a CSSRuleList
.
Examples
let myRules = document.styleSheets[0].cssRules; console.log(myRules);
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
cssRules |
45 |
12 |
20 |
No |
32 |
No |
45 |
45 |
20 |
32 |
No |
5.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/cssRules