Re: [csswg-drafts] [css-nesting] Problems with indiscriminately wrapping all parent selectors with `:is()` (#9492)

@Loirooriol 
> If the specificity can vary, then it has a performance impact, e.g. knowing that the element matches `.a2 .b2 .c2 .d2 .e2 .f2` is not enough, because maybe it also matches `a3 #b1 .c2 d3 .e2 f3` which has a higher specificity. So checking all/several possible combinations is needed.

Far better to say that the specificity is equal to the first one that actually matches, rather than the max specificity in the list!

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


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

Received on Wednesday, 25 October 2023 17:44:39 UTC