Bug 264943

Summary: [css-scoping] Support scope proximity in the cascade
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 229520    

Description Matthieu Dubet 2023-11-16 06:15:17 PST
The cascade prioritizes declarations with a more proximate scoping root, regardless of specificity or source order by applying scope proximity between the scoping root and the subject of each scoped style rule.


https://drafts.csswg.org/css-cascade-6/#scope-proximity
Comment 1 Radar WebKit Bug Importer 2023-11-16 06:16:33 PST
<rdar://problem/118507507>
Comment 2 Matthieu Dubet 2023-12-02 00:15:29 PST
Pull request: https://github.com/WebKit/WebKit/pull/21203
Comment 3 EWS 2023-12-05 10:13:22 PST
Committed 271557@main (40cf94b5b6f9): <https://commits.webkit.org/271557@main>

Reviewed commits have been landed. Closing PR #21203 and removing active labels.