[csswg-drafts] [css-cascade-5] What happens to name-defining @-rules nested inside @layer? (#6404)

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-cascade-5] What happens to name-defining @-rules nested inside @layer? ==
For example, you might expect this to define a _fancy_ animation, ignoring the plain one:

```CSS
@layer plain fancy;

@layer fancy {
  @keyframes anim { /* ... fancy animation ... */ }
}

@layer plain {
  @keyframes anim { /* ... plain animation ... */ }
}
```
It might be weird if it defines a _plain_ animation? So probably another reasonable behavior is to make name-defining things 
(e.g. `@keyframes`, `@property`, `@scroll-timeline`, etc) _parse errors_ if they appear inside `@layer`.

cc @mirisuzanne @xiaochengh 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6404 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 22 June 2021 17:51:32 UTC