Skip to content

[css-shadow] :has-slotted spec contradicts itself #14307

Description

@sorvell

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions