- From: Trey Shugart <notifications@github.com>
- Date: Sun, 23 Oct 2016 20:10:47 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 24 October 2016 03:11:18 UTC
> Note that we supported an arbitrary selector in ::content (in Shadow DOM v0) in Blink, as you are suggesting, however, we had experienced that it would make the implementation complicated and would be the root cause of a performance issue. Thus, we introduced this limitation to ::slotted intentionally. This also feels like it would break encapsulation a bit too much. For example, if you were able to provide a deep selector for slotted elements, it would touch all descendants of all slotted nodes. Besides the performance implications, this feels like a double standard: nothing can reach in, but the shadow root can reach out. @lukasoppermann since it's light DOM, couldn't you instead do: ```css my-element input[checked] ~ .material-toggle__switch ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/594#issuecomment-255639045
Received on Monday, 24 October 2016 03:11:18 UTC