Re: [csswg-drafts] [css-cascade-6] Should the scope proximity calculation be impacted by nesting scopes? (#10795)

To flesh that proposal out a bit, we'd have a (consistently) two-part value, including:

- proximity steps to the nearest root
- count of active scopes

In your example, the first rule has a scope of `[1,2]` and the second has a scope of `[1,1]`. As with specificity, we would compare those one at a time - moving to the scope-count as a tie-breaker only when the proximity is equal.

I would be happy with that as an approximation.


-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10795#issuecomment-2402970258 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 October 2024 18:09:54 UTC