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

Instead of 
``const style = document.head.querySelector('#shared-stylesheet')``

I do 
````
<style id="MY-COMPONENT">
````
and in my BaseClass
````
const styles = document.querySelectorAll(`style[id*="${this.nodeName}"]`);
styles.forEach ...
````

``this.localName`` if you want lowercase


But ofcourse

````
<style>
my-component::nuke!shadowDOM {

}
</style>
````

is a lot easier to understand if you can't program.

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

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

Received on Saturday, 4 November 2023 11:48:56 UTC