WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 206654
145357
:matches incorrectly matches pseudo elements
https://bugs.webkit.org/show_bug.cgi?id=145357
Summary
:matches incorrectly matches pseudo elements
Elliott Sprehn
Reported
2015-05-24 02:28:14 PDT
http://dev.w3.org/csswg/selectors-4/#matches
The spec says: "Pseudo-elements cannot be represented by the matches-any pseudo-class; they are not valid within :matches()." <style> div:matches(::before, ::after) { content: "Should not match."; } </style> <div></div>
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2015-05-24 05:28:47 PDT
Hi Benjamin, do you have any thought about this? Is this a solid decision in css-wg, or still controversial? If it's a solid decision, we should drop this feature. But if it's still discussed and not mature yet, we should keep it until we meet the consensus.
Benjamin Poulain
Comment 2
2015-05-26 14:01:56 PDT
Last time we talked about this, the CSSWG was still bikesheding on the definition of pseudo elements. Given how insanely bad the CSSWG is, and the value of this feature, I am ok with keeping this "bug" around.
Elliott Sprehn
Comment 3
2015-05-26 14:04:13 PDT
(In reply to
comment #2
)
> Last time we talked about this, the CSSWG was still bikesheding on the > definition of pseudo elements. > > Given how insanely bad the CSSWG is, and the value of this feature, I am ok > with keeping this "bug" around.
That just means content will depend on it and then other browsers will need to copy your unspec'ed behavior.
Benjamin Poulain
Comment 4
2015-05-26 14:22:42 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > Last time we talked about this, the CSSWG was still bikesheding on the > > definition of pseudo elements. > > > > Given how insanely bad the CSSWG is, and the value of this feature, I am ok > > with keeping this "bug" around. > > That just means content will depend on it and then other browsers will need > to copy your unspec'ed behavior.
We made a proposal for a formal definition several months ago.
Antti Koivisto
Comment 5
2020-01-24 00:02:16 PST
*** This bug has been marked as a duplicate of
bug 206654
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug