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

For anyone interested in maybe playing around with this in a real world project, I built a quick-and-dirty [proof of concept](https://github.com/DarkWiiPlayer/adopt-styles) for what I proposed two weeks ago.

It implements an `<adopt-styles>` custom element that mirrors styles from the outside document into a shadow DOM. The implementation is obviously far from perfect, but hopefully good enough to get a better idea of how this compares to other approaches like a new option on the `attachShadow` function.

I already listed some pros/cons back in my [original comment](https://github.com/WICG/webcomponents/issues/909#issuecomment-1952054895)

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

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

Received on Wednesday, 6 March 2024 10:09:30 UTC