Re: [WICG/webcomponents] Web components should be able to easily adapt to the host page while maintaining enapsulation (Issue #986)

@keithamus I think @LeaVerou means to render those e.g `<input slot="input" />` in the light DOM if they weren't placed there manually so they get styles from the document. We've been discussing this problem with Media Chrome as well.
I wouldn't  recommend "sprouting" elements in the light DOM, no native elements do this as far as I know. And UI frameworks don't like this at all, a React hydrate pass for example will do a full client re-render if there is a DOM tree mismatch in elements. (attributes are okay I think, just gives a warning) 

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

Message ID: <WICG/webcomponents/issues/986/1460364264@github.com>

Received on Wednesday, 8 March 2023 15:44:14 UTC