- From: Dan Clark via GitHub <sysbot+gh@w3.org>
- Date: Thu, 15 Sep 2022 21:36:28 +0000
- To: public-css-archive@w3.org
There's been discussion in the past about extending the `import` syntax to allow attributes that change things about the imported object (which is not allowed in the `assert` clause). This would create a new object for each `import` with different properties:
```js
import stylesA from "./style1.css" assert { type: "css"} with {layerName: "foo"}; // Creates stylesheet instance
import stylesB from "./style1.css" assert { type: "css"} with {layerName: "foo"}; // Same instance as stylesA
import stylesC from "./style1.css" assert { type: "css"} with {layerName: "bar"}; // New instance because value in `with` clause is different
```
But this would require a syntax change going through TC39.
-- 
GitHub Notification of comment by dandclark
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7002#issuecomment-1248657732 using your GitHub account
-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 15 September 2022 21:36:30 UTC