Bug 219950

Summary: [selectors] Default namespace gets ignored inside non-type selectors for :is() and :not()
Product: WebKit Reporter: Manuel Rego Casasnovas <rego>
Component: CSSAssignee: Manuel Rego Casasnovas <rego>
Status: RESOLVED FIXED    
Severity: Normal CC: emilio, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, koivisto, macpherson, menard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

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]
Patch
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
<rdar://problem/72443424>