Skip to content

Commit

Permalink
converted the note
Browse files Browse the repository at this point in the history
  • Loading branch information
dletorey committed Nov 11, 2024
1 parent 7ca28d1 commit 4e180c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/en-us/web/api/cssnesteddeclarations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ This is represented by a number of JavaScript objects in the [CSS Object Model](
This can be returned via `document.styleSheets[0].cssRules[0].cssRules[0].cssRules[0]`.
- The final rule is a `CSSNestedDeclaration` object that represents the `color: black` rule in the stylesheet, and which can be returned via `document.styleSheets[0].cssRules[0].cssRules[1]`.

Note that all top-level styles after the first `CSSNestedDeclaration` must also be represented as `CSSNestedDeclaration` objects in order to follow the [CSS nested declarations rule](/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting#nested_declarations_rule)
> [!NOTE]
> All top-level styles after the first `CSSNestedDeclaration` must also be represented as `CSSNestedDeclaration` objects in order to follow the [CSS nested declarations rule](/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting#nested_declarations_rule)

### CSSOM (CSS Object Model)

Expand Down

0 comments on commit 4e180c7

Please sign in to comment.