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

> Allowing page authors to override private state of components would be akin to asking TC39 to allow outside code to read private fields of classes or internal state of closures. It violates the contract set up by the library author and leads to fragile coupling that can put a undue burden on them.

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.

Allowing users who can already, technically speaking, insert entire style sheets into a shadow-DOM from the outside, or even make more significant changes to its internal structure, wouldn't really change anything in that regard.

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

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

Received on Tuesday, 19 March 2024 16:59:01 UTC