- From: Danny Engelman <notifications@github.com>
- Date: Sat, 04 Nov 2023 04:48:50 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 4 November 2023 11:48:56 UTC
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