Bug 210690

Summary: [CSS selectors] Support :where() pseudo class
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: allan.jensen, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, sam, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description Antti Koivisto 2020-04-18 09:33:10 PDT
https://drafts.csswg.org/selectors-4/#zero-matches

The Specificity-adjustment pseudo-class, :where(), is a functional pseudo-class with the same syntax and functionality as :is(). Unlike :is(), neither the :where pseudo-class, nor any of its arguments contribute to the specificity of the selector—its specificity is always zero.

This is useful for introducing filters in a selector while keeping the associated style declarations easy to override.
Comment 1 Antti Koivisto 2020-04-18 09:39:47 PDT
Created attachment 396852 [details]
patch
Comment 2 EWS 2020-04-18 13:24:35 PDT
Committed r260319: <https://trac.webkit.org/changeset/260319>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396852 [details].
Comment 3 Radar WebKit Bug Importer 2020-04-18 13:25:25 PDT
<rdar://problem/61981787>