Bug 219950 - [selectors] Default namespace gets ignored inside non-type selectors for :is() and :not()
Summary: [selectors] Default namespace gets ignored inside non-type selectors for :is(...
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Manuel Rego Casasnovas
Keywords: InRadar
Depends on:
Reported: 2020-12-16 09:17 PST by Manuel Rego Casasnovas
Modified: 2020-12-17 16:53 PST (History)
9 users (show)

See Also:

Patch (7.49 KB, patch)
2020-12-17 09:24 PST, Manuel Rego Casasnovas
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rego Casasnovas 2020-12-16 09:17:33 PST
Spec: https://drafts.csswg.org/selectors-4/#matches

Default namespace declarations do not affect the compound selector representing the subject of any selector within a :is() or :not() pseudo-class, unless that compound selector contains an explicit universal selector or type selector.

There are two WPT tests failing on WebKit due to this:
* https://wpt.fyi/results/css/selectors/is-default-ns-002.html
* https://wpt.fyi/results/css/selectors/not-default-ns-002.html
Comment 1 Manuel Rego Casasnovas 2020-12-16 15:08:57 PST
This has been fixed in Chromium in the following commits:
* https://chromium-review.googlesource.com/c/chromium/src/+/2489891
* https://chromium-review.googlesource.com/c/chromium/src/+/2489647
Comment 2 Manuel Rego Casasnovas 2020-12-17 09:24:50 PST
Created attachment 416427 [details]
Comment 3 EWS 2020-12-17 15:22:24 PST
Committed r270955: <https://trac.webkit.org/changeset/270955>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 416427 [details].
Comment 4 Radar WebKit Bug Importer 2020-12-17 15:23:17 PST