Re: [csswg-drafts] Write up rationale for why selectors in values are discouraged (#12590)

https://github.com/whatwg/html/issues/10143 ("Improve DX of element reference attributes...") is exploring a bunch of difficulties with globally-unique names, and I suspect they hold almost as much for CSS-assigned names as much as they do for IDs. It'd be ideal for us to come up with a platform-wide way of pointing to elements, and have both CSS and HTML (and JS, via https://github.com/whatwg/html/issues/11577 or similar) use it somehow. Perhaps a TPAC breakout would be helpful...

Of course, the existence of this platform-wide problem doesn't mean we need to stop the presses on any current CSS proposals using the established CSS patterns. We should just keep looking for a broadly-applicable solution.

(We discussed this in a TAG breakout today, but it's too early to claim TAG-wide support for anything in this post.)

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


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

Received on Wednesday, 20 August 2025 20:08:39 UTC