Re: [csswg-drafts] [selectors] Behavior of :root inside Shadow DOM (#10492)

In the linked tweet (and the [codepen](https://codepen.io/th3s4mur41/pen/MWdVVpG) it links to), the reason it doesnt match is because the selector is in the light dom, and selectors never see into shadows (except for the couple of special-case things like ::part and ::slotted). That *definitely* wouldn't be fixed by anything we do about :root matching.

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


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

Received on Tuesday, 25 June 2024 21:48:24 UTC