- From: Mayank via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 Jun 2024 02:37:08 +0000
- To: public-css-archive@w3.org
I don't think `:root` should match the shadow host. Currently, `:root` is the only selector that never matches anything inside shadow DOM. Today, I can use this knowledge to write `@scope (:root)` rules which don't get applied to shadow elements, even if the stylesheet gets adopted/linked in the shadow DOM. Similarly, I can write isomorphic stylesheets using `@scope (:root, :host)`. In both of these cases, I can use `:scope` to refer to the scope root, whether that's `:root` or `:host`. The original problem can be solved using a selector like `[popovertarget="shadowpopover"]:has(+ :popover-open)`. -- GitHub Notification of comment by mayank99 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10492#issuecomment-2190427978 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 June 2024 02:37:09 UTC