Re: [csswg-drafts] [css-cascade-5] Proposal to disallow interleaving of @layer and @import rules (#6522)

@bramus Yes, your summary of best practice is correct. Though another common practice is to avoid using `@import` entirely for performance reasons. :)

Only the empty layer-ordering statements are allowed before `@import`/`@namespace`, but once we encounter an `@import`/`@namespace` rule, then _either type of `@layer` rule_ will make additional `@import`/`@namespace` rules invalid. So I think the current text is correct. Basically, **you can't put anything else between `@import`/`@namespace` rules**, those have to be applied in a single block without intervening rules.


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


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

Received on Wednesday, 1 September 2021 17:48:15 UTC