@@ -124,7 +124,7 @@ Importing Style Sheets: the ''@import'' rule</h2>
124124 as if they were written literally into the stylesheet at the point of the ''@import'' .
125125
126126 Any ''@import'' rules must precede all other valid at-rules and style rules in a style sheet
127- (ignoring ''@charset'' and empty ''@layer'' definitions),
127+ (ignoring ''@charset'' and empty ''@layer'' definitions)
128128 and must not have any other valid at-rules or style rules between it and previous ''@import'' rules,
129129 or else the ''@import'' rule is invalid.
130130 The syntax of ''@import'' is:
@@ -1613,9 +1613,13 @@ Declaring Without Styles: the ''@layer'' statement at-rule</h5>
16131613 @layer <<layer-name>> #;
16141614 </pre>
16151615
1616- Such empty ''@layer'' rules are allowed before and after ''@import'' and ''@namespace'' rules,
1617- but are not allowed between (or intermixed with) ''@import'' and ''@namespace'' rules,
1618- and must not precede any ''@charset'' rule.
1616+ Such empty ''@layer'' rules are allowed before ''@import'' and ''@namespace'' rules
1617+ (after the ''@charset'' rule, if any)
1618+ as well as everywhere ''@layer'' [=block at-rules=] are allowed.
1619+
1620+ Note: They are not allowed between (or intermixed with) ''@import'' and ''@namespace'' rules,
1621+ and such interleaved ''@layer'' rules will cause any subsequent ''@import'' or ''@namespace'' rules
1622+ to be ignored.
16191623
16201624 Unlike the [[#layer-block|block syntax]] ,
16211625 multiple comma-separated layer names can be provided in this syntax,
0 commit comments