Re: [csswg-drafts] [css-cascade] Outside `@scope`, `:scope` should resolve to `:host` in shadow trees (#11000)

> This means the same CSS can be used within Shadow DOM to style the component, as well as using @import ... scope(...) to style light DOM elements.

This is indeed an annoying pain point right now when trying to share styles. While you can write `:where(:host, :scope, :root)`, it's cumbersome and I believe this isn't currently supported in Safari (bug or unspec'd?).

Separately and for the same reason could `:root` resolve to `:host` in a shadow tree?

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


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

Received on Friday, 4 October 2024 16:52:12 UTC