File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -83,16 +83,16 @@ Importing Style Sheets: the ''@import'' rule</h2>
83
83
then it doesn't apply to the imported stylesheet.
84
84
85
85
* If a feature relies on the relative ordering of two or more constructs in a stylesheet
86
- (such as the requirement that ''@charset'' must not have any other content preceding it),
86
+ (such as the requirement that ''@namespace'' rules must not have any other rules other than
87
+ ''@import'' preceding it),
87
88
it only applies between constructs in the same stylesheet.
88
89
89
90
<p class='example'>
90
91
For example, declarations in style rules from imported stylesheets interact with the cascade
91
92
as if they were written literally into the stylesheet at the point of the ''@import'' .
92
93
93
- Any ''@import'' rules must precede all other at-rules and style rules in a style sheet
94
- (besides ''@charset'' , which must be the first thing in the style sheet if it exists),
95
- or else the ''@import'' rule is invalid.
94
+ Any ''@import'' rules must precede all other valid at-rules and style rules in a style sheet
95
+ (with ''@charset'' counting as an invalid rule), or else the ''@import'' rule is invalid.
96
96
The syntax of ''@import'' is:
97
97
98
98
<pre class='prod'>@import [ <<url>> | <<string>> ] <<media-query-list>> ? ;</pre>
Original file line number Diff line number Diff line change @@ -89,16 +89,16 @@ Importing Style Sheets: the ''@import'' rule</h2>
89
89
then it doesn't apply to the imported stylesheet.
90
90
91
91
* If a feature relies on the relative ordering of two or more constructs in a stylesheet
92
- (such as the requirement that ''@charset'' must not have any other content preceding it),
92
+ (such as the requirement that ''@namespace'' rules must not have any other rules other than
93
+ ''@import'' preceding it),
93
94
it only applies between constructs in the same stylesheet.
94
95
95
96
<p class='example'>
96
97
For example, declarations in style rules from imported stylesheets interact with the cascade
97
98
as if they were written literally into the stylesheet at the point of the ''@import'' .
98
99
99
- Any ''@import'' rules must precede all other at-rules and style rules in a style sheet
100
- (besides ''@charset'' , which must be the first thing in the style sheet if it exists),
101
- or else the ''@import'' rule is invalid.
100
+ Any ''@import'' rules must precede all other valid at-rules and style rules in a style sheet
101
+ (with ''@charset'' counting as an invalid rule), or else the ''@import'' rule is invalid.
102
102
The syntax of ''@import'' is:
103
103
104
104
<pre class='prod'>
You can’t perform that action at this time.
0 commit comments