Skip to content

Commit

Permalink
[css-nesting-1] Specificity of '&' is zero without a parent rule (#11135
Browse files Browse the repository at this point in the history
)

Resolves #10196.

Co-authored-by: Anders Hartvoll Ruud <[email protected]>
  • Loading branch information
andruud and Anders Hartvoll Ruud authored Nov 6, 2024
1 parent bfd99a5 commit f1fffef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css-nesting-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ Nesting Selector: the ''&'' selector {#nest-selector}
The <a>specificity</a> of the <a>nesting selector</a>
is equal to the largest specificity among the complex selectors
in the parent style rule's selector list
(identical to the behavior of '':is()'').
(identical to the behavior of '':is()''),
or zero if no such selector list exists.

<div class="example">
For example, given the following style rules:
Expand Down

0 comments on commit f1fffef

Please sign in to comment.