- From: Ryosuke Niwa <notifications@github.com>
- Date: Sun, 16 Feb 2020 11:01:45 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 16 February 2020 19:02:01 UTC
For app-specific structural “components”, I’d imagine sharing styles with a mechanism like `adoptedStyleSheets` would work best (there is an on-going discussion about the name & semantics of this particular API). If we had a scoped custom element registry, you could imagine some kind of a sugar like all components registered with some custom element registry would automatically get the same set of adopted style sheets (not necessarily proposing or endoursing such an idea; just saying that coming up with such a sugar coating is possible). But ultimately, there is a trade off between sharing style sheets across components, and having style isolation between components. At extreme, you end up with all style rules present in every component. That sort of defeats the point of style isolation shadow DOM provides. -- 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/864#issuecomment-586740679
Received on Sunday, 16 February 2020 19:02:01 UTC