- From: Oliver Williams <notifications@github.com>
- Date: Fri, 26 Apr 2024 07:24:07 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 26 April 2024 14:24:11 UTC
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