Re: [csswg-drafts] [cssom-1] Expose nested selectorText on CSSStyleRule (#10246)

> preprocessor uses, notably determining the specificity. Is there more?

For preprocessors or author tooling in general? No, all variations on the same theme :)

e.g. determining if `&::before {}` would be valid, which it might not be if `&` represents something like `::after`. This is essentially the same problem as calculating specificity.

You need to do something with `&` to be able to give feedback on what the author wrote.
This is true for any indirection (e.g. `var()`)

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


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

Received on Thursday, 25 April 2024 21:44:16 UTC