- From: Martin Janecke <notifications@github.com>
- Date: Wed, 07 Feb 2018 06:26:40 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 February 2018 14:27:57 UTC
> If I get your use-case correctly, what you are looking was once there as a `::shadow` but was removed in V1. There is alternative proposition, to let you expose from shadow root, the parts to style using `part` attribute, then style them from outside using `::part()` and `::theme`, see w3c/webcomponents#300 No, not really. That proposal makes things very complicated. The author of the shadow-root has to prepare all the parts that can be restyled from the outside and the author of the main document needs to adhere to the vocabulary defined by the shadow root author and tailor his style sheets specifically for that component. What I mean is much simpler: An option on the shadowroot (something like `mode='let-all-styles-in-but-none-out'`) element that allows all styles from outside take effect inside the shadow dom (but styles that are defined inside the shadow dom for the same properties have higher specifity and would take precedence) without any further syntax requirements. A simple flag that changes shadow doms two-way encapsulation into a one-way encapsulation. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/510#issuecomment-363784918
Received on Wednesday, 7 February 2018 14:27:57 UTC