W3C home > Mailing lists > Public > www-style@w3.org > August 2014

[selectors] Why is :matches() restricting pseudo-elements?

From: Benjamin Poulain <bpoulain@apple.com>
Date: Thu, 28 Aug 2014 14:41:14 -0700
Message-id: <B9F9F613-B612-4A35-B93C-892102584F1F@apple.com>
To: www-style@w3.org
Hi,

The definition of :matches() has the following restriction: "Pseudo-elements cannot be represented by the matches-any pseudo-class; they are not valid within :matches().”.

Can someone shed some light this restriction?

Greping through some CSS, it seems quite common to have “something::after, something::before”, which could be written as "something:matches(::after, ::before)”. This seems like a useful capability.

Benjamin
Received on Thursday, 28 August 2014 21:45:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC