The spec says:
The :has-slotted pseudo-class matches slot elements which have a non-empty list of flattened slotted nodes.
When :has-slotted matches a slot with fallback content, we can conclude that the fallback content is not being displayed.
This is contradicting since a slot's flattened assigned nodes includes its fallback content, meaning the 2nd sentence is not necessarily true since fallback content may be displayed when :has-slotted matches.
The first sentence matches the csswg's resolution here: #6867 (comment).
The 2nd sentence should likely just be removed.
The spec says:
This is contradicting since a slot's flattened assigned nodes includes its fallback content, meaning the 2nd sentence is not necessarily true since fallback content may be displayed when
:has-slottedmatches.The first sentence matches the csswg's resolution here: #6867 (comment).
The 2nd sentence should likely just be removed.