- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Tue, 25 Mar 2025 06:27:32 +0000
- To: public-css-archive@w3.org
I think this depends on if `@sheet` is more like a condition (e.g. `@media`, `@layer`, ...), or more like a name-defining at-rule (e.g. `@keyframes`, `@font-face`, ...).
I think the utility of the append or merge behavior is fairly limited and might be surprising to CSS authors when the sheets contain `@import` statements.
```css
@sheet sheet1 {
@import "foo.css";
* { font-family: serif; }
}
@sheet sheet1 {
@import "bar.css"; /* won't work, it appears after a style rule when merged */
* { font-family: sans-serif; }
}
```
While "last one wins" can also be used by CSS authors to override definitions of sheets.
```css
@sheet sheet1 {
* { font-family: sans-serif; }
}
@media print {
@sheet sheet1 {
* { font-family: serif; }
}
}
```
--
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12001#issuecomment-2750216895 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 25 March 2025 06:27:33 UTC