Re: [w3c/webcomponents] Measuring performance of shadow DOM (#848)

<details>
<summary>
not really on the OP topic, hence collapsing, but I found the previous two comments interesting and thought it could be helpful to share a ‘developer usage in the wild’ story:
</summary>

I recently found it useful that I could attach shadow roots to non-custom elements. I had an element which would create transient containers in an external modal layer to achieve a ‘remote descendants’-like API (think react portals, or the weirder forms of angular transclusion that slots don’t cover). Stylesheets from the shadow root which the nodes would have lived in if they were really descendants of the element which was controlling them were brought along for the ride; this was the key to achieving the intended result.

It’s true that I could have created a ‘does nothing but append a shadow’ custom element for this purpose, but it was convenient (and more expressive) that I didn’t have to jump through that hoop and could just mint ‘anonymous’ divs to act as shadow hosts.

</details>

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

Received on Thursday, 17 October 2019 09:13:44 UTC