Re: [WICG/webcomponents] Pushing Styles into Shadow DOM (`@shadow` rules) (Issue #1053)

> > Correct me if I'm wrong, but in this regard, nothing would change here. Elements with an open shadow-DOM can already have their internal state messed with by the outside world and mode="closed" exists precisely to give component authors a tool to make this impossible.
> 
> This isn't correct because currently CSS cannot select into open shadow roots. Allowing that is breaking the contract currently provided to shadow roots. This is exactly why I proposed #909, because it is a change to allow CSS to select into shadow roots and the web component author, not the page author, should opt into that.

I'm not quite seeing how this is worse than allowing the outside to reach into the shadow DOM and just insert a style tag there; or worse yet, delete random nodes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1053#issuecomment-2007767075
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1053/2007767075@github.com>

Received on Tuesday, 19 March 2024 17:35:57 UTC