- From: Caleb Williams <notifications@github.com>
- Date: Fri, 26 Feb 2021 19:24:24 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 27 February 2021 03:24:36 UTC
Could a key be added to `ShadowRootInit` that would cause the `shadowRoot.styleSheets` or `shadowRoot.adoptedStyleSheets` to mirror the contents of `document.styleSheets`?
```javascript
this.attachShadow({
mode: 'open',
adoptDocumentStyles: true
});
```
I would imagine, then, that any local styles (say via a `<style>` block would append to the end of the `StyleSheetList`, but keeping those lists in sync could be gnarly from an implementation perspective.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/909#issuecomment-786995517
Received on Saturday, 27 February 2021 03:24:36 UTC