@@ -123,7 +123,9 @@ Importing Style Sheets: the ''@import'' rule
123
123
as if they were written literally into the stylesheet at the point of the ''@import'' .
124
124
125
125
Any ''@import'' rules must precede all other valid at-rules and style rules in a style sheet
126
- (ignoring ''@charset'' and empty ''@layer'' definitions), or else the ''@import'' rule is invalid.
126
+ (ignoring ''@charset'' and empty ''@layer'' definitions),
127
+ and must not have any other valid at-rules or style rules between it and previous ''@import'' rules,
128
+ or else the ''@import'' rule is invalid.
127
129
The syntax of ''@import'' is:
128
130
129
131
@@ -1392,7 +1394,7 @@ Anonymous Layers
1392
1394
1393
1395
* Multiple unnamed layer rules
1394
1396
place their styles into separate layers,
1395
- as each occurence is referencing a distinct anonymous layer name.
1397
+ as each occurrence is referencing a distinct anonymous layer name.
1396
1398
1397
1399
1398
1400
@layer { /* layer 1 */ }
@@ -1610,8 +1612,9 @@ Declaring Without Styles: the ''@layer'' statement at-rule
1610
1612
@layer <> #;
1611
1613
1612
1614
1613
- Such empty ''@layer'' rules are allowed
1614
- anywhere either ''@import'' or other ''@layer'' rules are allowed.
1615
+ Such empty ''@layer'' rules are allowed before and after ''@import'' and ''@namespace'' rules,
1616
+ but are not allowed between (or intermixed with) ''@import'' and ''@namespace'' rules,
1617
+ and may not precede any ''@charset'' rule.
1615
1618
1616
1619
Unlike the [[#layer-block|block syntax]] ,
1617
1620
multiple comma-separated layer names can be provided in this syntax,
0 commit comments