Bug 210690 - [CSS selectors] Support :where() pseudo class
Summary: [CSS selectors] Support :where() pseudo class
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar, WebExposed
Depends on:
Reported: 2020-04-18 09:33 PDT by Antti Koivisto
Modified: 2020-04-18 21:32 PDT (History)
10 users (show)

See Also:

patch (12.55 KB, patch)
2020-04-18 09:39 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 Antti Koivisto 2020-04-18 09:33:10 PDT

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]
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