Skip to content

Commit

Permalink
[selectors] Specify that invalid selectors in :is()/:where() are 0 sp…
Browse files Browse the repository at this point in the history
…ecificity. #9600
  • Loading branch information
tabatkins committed Jan 18, 2024
1 parent 4a267c8 commit 47c4244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3726,6 +3726,11 @@ Grammar</h2>
(This might be empty.)
</div>

Any items in a <<forgiving-selector-list>> that are invalid
(whether explicitly, by using unknown selectors or syntax,
or merely contextually, using known syntax but in an invalid context)
must be treated as having zero specificity.

Note: <<forgiving-selector-list>> is intentionally used only in '':is()'' and '':where()'',
not in any other selector that takes a selector argument.
<!--
Expand Down

0 comments on commit 47c4244

Please sign in to comment.