- From: Bramus! via GitHub <sysbot+gh@w3.org>
- Date: Mon, 30 Aug 2021 23:35:27 +0000
- To: public-css-archive@w3.org
I see that the spec got adjusted in https://github.com/w3c/csswg-drafts/commit/ed81c17716fa789f44cb8edac125f22cdb9a5b9a for this, but I'm a bit confused by the use of the word "They" in the note. > Note: They are not allowed between (or intermixed with) @import and @namespace rules … That "They", does it mean: 1. `@layer` statement at-rules (from the title of that section)? 2. `@layer` block at-rules _(mentioned as the last few words just above the note)_? 3. Both --- A few thoughts that go with all these options: - If option 1: then the first syntax in EXAMPLE 31 (listed just underneath it) would be invalid, no? - If option 2: it's pretty unclear to me to know that "They" targets only this type of `@layer` at-rules. It also feels a bit redundant, as this guideline is also noted in another note above it _(“Note: `@layer` block at-rules cannot be interleaved with `@import` rules.”)_. - If option 3: How would one append extra local CSS to the `theme` layer of EXAMPLE 31? I guess that would only be possible by creating extra sub-layers inside `theme`? ```css @layer default, theme, theme.overrides, components; @layer theme.overrides { /* Override theme "base" layer here */ } @import url(theme.css) layer(theme); ``` Feels weird to first have to write the overrides, and only then load its base layer. --- I think option 2 is meant, but I'm not really sure reading all comments and logs here, as it's not explicitly mentioned 🤔 -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6522#issuecomment-908779186 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 30 August 2021 23:35:28 UTC