Bug 264943 - [css-scoping] Support scope proximity in the cascade
Summary: [css-scoping] Support scope proximity in the cascade
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 229520
  Show dependency treegraph
 
Reported: 2023-11-16 06:15 PST by Matthieu Dubet
Modified: 2024-01-30 04:09 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.