CSSRulesubtypen
CSSRulesubtypen is a concept used to describe the different concrete interfaces that represent specific kinds of CSS rules within the CSS Object Model (CSSOM). In the CSSOM, CSSRule serves as a common base type for all rules in a style sheet, and its subtypes correspond to the various forms that a rule can take, such as standard style rules or various at-rule blocks. Each subtype exposes properties and behavior tailored to the kind of rule it represents.
Common subtypes include CSSStyleRule for standard selector and declaration blocks, CSSCharsetRule for @charset, CSSImportRule for @import,
The type property on a CSSRule instance identifies its subtype numerically, while the specific interface (for
Access and manipulation typically occur through the CSSOM from JavaScript, such as iterating document.styleSheets[i].cssRules and inspecting
See also: CSS Object Model, CSSRule, CSSStyleRule, CSSMediaRule.