Bug 210701 - [CSS selectors] :is() / :where() should not allow pseudo-elements at parse-time
Summary: [CSS selectors] :is() / :where() should not allow pseudo-elements at parse-time
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-18 15:21 PDT by Emilio Cobos Álvarez (:emilio)
Modified: 2020-04-19 10:52 PDT (History)
10 users (show)

See Also:


Attachments
patch (3.91 KB, patch)
2020-04-19 01:57 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff
patch (613.42 KB, patch)
2020-04-19 05:56 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Cobos Álvarez (:emilio) 2020-04-18 15:21:18 PDT
https://drafts.csswg.org/selectors/#matches:

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

That seems to me like :is(foo::before) should be invalid at parse-time. Instead webkit parses it, but never matches it.
Comment 1 Antti Koivisto 2020-04-19 01:57:27 PDT
Created attachment 396899 [details]
patch
Comment 2 Antti Koivisto 2020-04-19 05:56:29 PDT
Created attachment 396903 [details]
patch
Comment 3 EWS 2020-04-19 10:51:23 PDT
Committed r260338: <https://trac.webkit.org/changeset/260338>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396903 [details].
Comment 4 Radar WebKit Bug Importer 2020-04-19 10:52:13 PDT
<rdar://problem/62023980>