cssRules
Summary
Gets a list of rules within a @media block.
Property of css/cssom/CSSMediaRule/CSSMediaRulecss/cssom/CSSMediaRule/CSSMediaRule
Syntax
Note: This property is read-only.
var ruleList = mediaRule.cssRules;
Return Value
Returns an object of type DOM NodeDOM Node
Type - CSSRuleList. A list of all of the rules within the media block.
Related specifications
- DOM Level 2 Style
- Recommendation
See also
Related articles
CSSOM
cssRules