CSSGroupingRule: cssRules property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{ APIRef("CSSOM") }}

The **cssRules** property of the {{domxref("CSSGroupingRule")}} interface returns a {{domxref("CSSRuleList")}} containing a collection of {{domxref("CSSRule")}} objects.

Value

a {{domxref("CSSRuleList")}}.

Examples

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}