W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

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

From: Sam Sneddon via GitHub <sysbot+gh@w3.org>
Date: Tue, 27 Oct 2020 05:25:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-716991111-1603776343-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:21 UTC