Skip to content

[selectors-4]Why Pseudo-elements cannot be represented by the :is()/:matches()? #2284

Open
@yisibl

Description

@yisibl

Pseudo-elements cannot be represented by the matches-any pseudo-class; they are not valid within :matches().

https://www.w3.org/TR/2018/WD-selectors-4-20180201/#matches

Safari support :matches(::before)

The :matches() has now been renamed to :is()

https://drafts.csswg.org/selectors/#selectordef-matches

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