- From: Kurt Catti-Schmidt via GitHub <sysbot+gh@w3.org>
- Date: Tue, 25 Mar 2025 00:11:34 +0000
- To: public-css-archive@w3.org
KurtCattiSchmidt has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-cascade-7] What happens with duplicate @sheet identifiers? ==
With the following CSS, what should happen?
```
@sheet sheet1 {
* { font-family: serif; }
}
@sheet sheet1 {
* { font-family: sans-serif; }
}
```
I can think of a few options:
1. Last definition wins - this aligns with how CSS generally works and seems straightforward for developers.
2. Rules with the same identifier are merged, like with duplicate `@layer` names. `@layer` is a bit different though, because source order of the *name* determines layer precedence, which isn't the case for `@sheet`.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12001 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 00:11:35 UTC