Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

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