CSSStyleRule
The CSSStyleRule
interface represents a single CSS style rule.
Properties
The cssRules
property of the CSSGroupingRule interface returns a CSSRuleList containing a collection of CSSRule objects.
The parentRule
property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.
The parentStyleSheet
property of the CSSRule interface returns the StyleSheet object in which the current rule is defined.
The selectorText
property of the CSSStyleRule interface gets and sets the selectors associated with the CSSStyleRule
.
The read-only style
property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
The styleMap
read-only property of the CSSStyleRule interface returns a StylePropertyMap object which provides access to the rule's property-value pairs.