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

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

w3c / csswg-drafts Public

Additional navigation options

New issue

New issue

Open

Open

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

#2284

Labels

selectors-5

@yisibl

Description

@yisibl

yisibl

opened

on Feb 7, 2018

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

Labels

selectors-5

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions