[whatwg/dom] Should there be a declarative version of adoptedStyleSheets? (#910)

Once [declarative Shadow DOM](https://github.com/whatwg/dom/issues/831) is a thing, it would be very nice to be able to declaratively specify a (shared) `adoptedStyleSheets` value, by reference. This would avoid the need to repeat `<style>` or `<link>` tags for each declarative Shadow Root.

It would seem that several things are needed here:
1. A declarative syntax for a stylesheet. This is likely just a `<style>` tag with an id.
2. A way to refer from one location (e.g. a declarative Shadow Root) to another stylesheet, which potentially resides across document/shadow bounds. This likely requires something like [WICG #169](https://github.com/WICG/aom/issues/169).

What other ideas are there for how to add `adoptedStyleSheets` support to declarative Shadow DOM?

-- 
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/910

Received on Wednesday, 28 October 2020 18:50:02 UTC