Re: [WICG/webcomponents] Allowing CSS combinators postfixed to the ::slotted() selector (#889)

Joe Pea aka trusktr, got me working again.

It is still a Work-Around!! To style ``<slot>`` content from a ``<style>`` tag IN the TEMPLATE

I rewrote the code.. JS is still the same, except I changed ``...this.children`` to ``...this.childNodes`` to include \#textnodes in the move **from one lightDOM to a nested lightDOM**.


I deleted most styling examples and comments.

Is this simple enough?

**TWO shadowRoots** to style ``<slot>s`` _and_ **not** bleed CSS: https://jsfiddle.net/WebComponents/rhodv143/





-- 
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/889#issuecomment-842439879

Received on Monday, 17 May 2021 15:57:02 UTC