- From: Kurt Catti-Schmidt via GitHub <sysbot+gh@w3.org>
- Date: Mon, 24 Mar 2025 17:47:31 +0000
- To: public-css-archive@w3.org
KurtCattiSchmidt has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-cascade-7] CSS @sheet - is there a need for an @sheet statement (in addition to block)? ==
CSS layers allow for both statements with rules:
```
@layer foo {
h1, h2 { color: maroon; background: white;}
}
```
https://www.w3.org/TR/css-cascade-5/#layer-block
...and without:
```
@layer default, theme, components;
```
https://www.w3.org/TR/css-cascade-5/#layer-empty
Does it make sense to follow this convention for `@sheet`?
My initial take is "no", because `@sheet` only makes sense with both an identifier and a ruleset. If there's no identifier, the rules defined in the sheet can't be applied, and if there's no ruleset, it doesn't have any rules to apply, and thus doesn't do anything.
`@layer` is different, because initial declaration of a layer impacts the cascade order. With `@sheet` identifiers are only used for embedding later, so I don't see any use case for reserving a name for later.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11998 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 24 March 2025 17:47:32 UTC