- From: Justin Fagnani <notifications@github.com>
- Date: Thu, 27 Jun 2024 15:29:40 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 27 June 2024 22:29:44 UTC
The main purpose of this propose is the same as declarative shadow DOM: to be able to accurately serialize a valid DOM tree to HTML. Right now there's no way to properly serialize adoptedStyleSheets. During SSR you can convert them to `<style>` tags, but you can't deduplicate them, so you end up with potentially hundreds or thousands of duplicate stylesheets. Converting the to `<link>` tags would likewise result in potentially hundreds of HTTP requests. Both of those workarounds break the semantics of constructible stylesheets. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/939#issuecomment-2195769882 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/939/2195769882@github.com>
Received on Thursday, 27 June 2024 22:29:44 UTC