CSSNestedDeclarations
Baseline 2024>
Newly available
Since December 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The CSSNestedDeclarations interface of the CSS Rule API is used to group nested CSSRules.
The interface allows the CSS Object Model (CSSOM) to mirror the structure of CSS documents with nested CSS rules, and ensure that rules are parsed and evaluated in the order that they are declared.
Note: Implementations that do not support this interface may parse nested rules in the wrong order. See Browser compatibility for more information.
Instance properties
Inherits properties from its ancestor CSSRule.
CSSNestedDeclarations.styleRead only-
Returns the values of the nested rules.
Instance methods
No specific methods; inherits methods from its ancestor