AvailabilityDOM Level 2 CSS Properties
Methods
DescriptionThis interface defines a read-only ordered list (i.e., an array) of CSSRule objects. The length property specifies the number of rules in the list, and the item( ) method allows you to retrieve the rule at a specified position. In JavaScript, CSSRuleList objects behave like JavaScript arrays, and you can query an element from the list using square-bracket array notation instead of calling the item( ) method. (Note, however, that you cannot assign new nodes into a CSSRuleList using square brackets.) See AlsoType ofCSSMediaRule.cssRules, CSSStyleSheet.cssRules |