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

Isn't it already possible to share styles between the page and component? The user of your component can write this:
```js
 import stylesheet from '/shared-styles.css' with {type: 'css'};
 document.querySelector('whatever-element').shadowRoot.adoptedStyleSheets.push(stylesheet);
```

And they can request the same stylesheet in the <head> for the light DOM:
```html
<link rel="stylesheet" href="shared-styles.css">
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/909#issuecomment-2079498187
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/909/2079498187@github.com>

Received on Friday, 26 April 2024 14:24:11 UTC