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
<rdar://problem/118507507>
Pull request: https://github.com/WebKit/WebKit/pull/21203
Committed 271557@main (40cf94b5b6f9): <https://commits.webkit.org/271557@main> Reviewed commits have been landed. Closing PR #21203 and removing active labels.