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

Description Antti Koivisto 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
Comment 1 Antti Koivisto 2022-01-19 02:57:23 PST
Created attachment 449470 [details]
Patch
Comment 2 Antti Koivisto 2022-01-19 02:57:47 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/32448
Comment 3 EWS Watchlist 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
Comment 4 Antti Koivisto 2022-01-19 04:14:02 PST
Created attachment 449472 [details]
Patch
Comment 5 EWS 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].
Comment 6 Antti Koivisto 2022-01-19 06:55:51 PST
rdar://87768936