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

> The semantics here are fine for unbundled apps, but bundling becomes tricky. If you have two .css files in an app, you can't just combine them. ie:
> 
> ```js
> import sheet1 from './styles1.css' assert {type: 'css'};
> import sheet2 from './styles2.css' assert {type: 'css'};
> ```
> 
> Is not compatible with:
> 
> ```js
> import sheet from './styles1and2.css' assert {type: 'css'};
> ```

Dumb question from someone lacking context about CSS modules: these aren't compatible because sheet1 and sheet2 are both `CSSStyleSheet` objects consisting of their respective parts, right?

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


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

Received on Tuesday, 27 October 2020 05:25:47 UTC