- From: 一丝 via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Aug 2022 03:45:25 +0000
- To: public-css-archive@w3.org
yisibl has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-cascade-5]Clarify the behavior of a empty `@layer` before `@import` == https://www.w3.org/TR/css-cascade-5/#at-import > Any [@import](https://www.w3.org/TR/css-cascade-5/#at-ruledef-import) rules must precede all other valid at-rules and style rules in a style sheet (ignoring [@charset](https://www.w3.org/TR/css-syntax-3/#at-ruledef-charset) and empty [@layer](https://www.w3.org/TR/css-cascade-5/#at-ruledef-layer) definitions). Ignoring `@layer` in this case is well understood and uncontroversial: ```css @layer bar; @import "foo.css"; ``` However, the following case is not specified in the specification. The `@import` will be invalidated in the browser. The [implementation in SWC](https://github.com/swc-project/swc/pull/3842) is the opposite, and the CSS parser implementor may have misunderstood. ```css @layer {} @import "foo.css"; ``` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7566 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 August 2022 03:45:27 UTC