Re: [csswg-drafts] Multiple stylesheets per file (#5629)

This may be closely related to @justinfagnani’s comments: it would feel strange to add named `@sheet` to CSS just so that JS works better, therefore I would expect that CSS’s own `@import` could make use of sheets to only import select parts of other stylesheets. 

Furthermore, could named sheets be exposed as URL fragments then, e.g. `<link rel=stylesheet href="style.css#sheet">`? 

Also, I still like the idea of namespaced custom properties inside variable references from #6099:

~~~~ css
@import CD from url(corporate-design.css);
a {color: var(-CD-primary);}
~~~~


-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5629#issuecomment-1406099415 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 27 January 2023 06:59:37 UTC