Re: [WICG/webcomponents] Declarative CSS Module Scripts (#939)

> Based on some of the feedback with our declarative CSS modules proposals we're looking at an @sheet CSS rule as an alternative path for the primary scenarios.

Sorry, can you explain more how you see the declarative module scripts and multiple-sheets per file solve the same problems? As the initial proposer for these two I see them as basically covering completely different problem.

- Declarative module scripts is a way to _reuse_ inline CSS modules by reference in HTML.
- Multiple stylesheets per file is a way to _bundle_ together small stylesheets that should apply individually.

I don't see how multiple stylesheets per file customer the declarative module scripts use cases at all. We still need a way to emit inline styles into HTML as they're encountered while SSR'ing the component tree, and reference them from other use sites.

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

Message ID: <WICG/webcomponents/issues/939/2599352642@github.com>

Received on Friday, 17 January 2025 23:08:53 UTC