Re: [whatwg/dom] Declarative Shadow DOM (#831)

I feel a bit awkward leaving this comment here, but according to [this tweet from stubbornella](https://mobile.twitter.com/stubbornella/status/1227768776109613056) a proposal will emerge in the next week or so for declarative CSS scoping on the light DOM.

We currently do SSR+hydration with React and don't use Web Components. CSS scoping is all we'd even hope to gain from a declarative shadow DOM proposal. CSS scoping on the light DOM sounds like what we'd prefer. (I'd have to read the other proposal first to be sure, though, and Rich-Harris's remarks about duplicating styles might be a real concern there.)

In general, I think an adequate test of this proposal should demonstrate Web Component hydration: Running Web Components on the server side in a way that renders declarative shadow DOM without JS, and then running JS on the client side that converts all of this into programmatic Web Components. I suspect that if the current proposal were prototyped, it would result in the issues Rich called out, including reduced performance relative to just not using Web Components at all.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/831#issuecomment-585899197

Received on Thursday, 13 February 2020 18:19:36 UTC