Re: [csswg-drafts] [css-cascade-5] `@layer` preceding `@import` should be valid (#8670)

I found #6522. Based on its resolution, interleaving `@layer` statement between `@import`s, or interleaving `@import` between `@layer` statements, must be invalid. The current prose and [Example 31](https://drafts.csswg.org/css-cascade-5/#example-aa4a55a5) seem confusing then.

And it seems to also apply to interleaving `@namespace` between `@layer` statements, or vice-versa, as explained in this non-normative note:

  > Note: Any `@layer` rule that comes after an @import or @namespace rule will cause any subsequent @import or @namespace rules to be ignored.

Actually, this means you can declare `@layer`, `@import`, `@namespace`, in this order, but not `@import`, `@layer`, `@namespace`. I am confused.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8670#issuecomment-1493980972 using your GitHub account


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

Received on Monday, 3 April 2023 09:24:51 UTC