Bug 235351

Summary: [:has() pseudo-class] Compute specificity correctly
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: allan.jensen, ashvayka, clopez, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/32448
Attachments:
Description Flags
Patch
none
Patch none

Antti Koivisto
Reported 2022-01-19 02:51:09 PST
"The specificity of an ':is()', ':not()', or ':has()' pseudo-class is replaced by the specificity of the most specific complex selector in its selector list argument." https://www.w3.org/TR/selectors-4/#specificity-rules
Attachments
Patch (4.98 KB, patch)
2022-01-19 02:57 PST, Antti Koivisto
no flags
Patch (5.92 KB, patch)
2022-01-19 04:14 PST, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2022-01-19 02:57:23 PST
Antti Koivisto
Comment 2 2022-01-19 02:57:47 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/32448
EWS Watchlist
Comment 3 2022-01-19 03:00:16 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Antti Koivisto
Comment 4 2022-01-19 04:14:02 PST
EWS
Comment 5 2022-01-19 05:44:42 PST
Committed r288196 (246168@main): <https://commits.webkit.org/246168@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449472 [details].
Antti Koivisto
Comment 6 2022-01-19 06:55:51 PST
Note You need to log in before you can comment on or make changes to this bug.