File tree Expand file tree Collapse file tree 3 files changed +22
-1798
lines changed Expand file tree Collapse file tree 3 files changed +22
-1798
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,17 @@ Importing Style Sheets: the ''@import'' rule</h2>
45
45
46
46
The <dfn>@import</dfn> rule allows users to import style rules from other style sheets.
47
47
If an ''@import'' rule refers to a valid stylesheet,
48
- user agents must treat the contents of the stylesheet as if they were written in place of the ''@import'' rule.
48
+ user agents must treat the contents of the stylesheet as if they were written in place of the ''@import'' rule,
49
+ with two exceptions:
50
+
51
+ * If a feature <em> explicitly</em> defines that it only applies to a particular stylesheet,
52
+ and not any imported ones
53
+ (such as the ''@namespace'' rule),
54
+ then it doesn't apply to the imported stylesheet.
55
+ * If a feature relies on the relative position of two or more constructs in a stylesheet
56
+ (such as the requirement that an ''@else'' rule follow another <a>conditional group rule</a> ,
57
+ or the requirement that ''@charset'' must not have any other content preceding it),
58
+ it only applies between constructs in the same stylesheet.
49
59
50
60
<p class='example'>
51
61
For example, declarations in style rules from imported stylesheets interact with the cascade
Original file line number Diff line number Diff line change @@ -58,7 +58,17 @@ Importing Style Sheets: the ''@import'' rule</h2>
58
58
59
59
The <dfn>@import</dfn> rule allows users to import style rules from other style sheets.
60
60
If an ''@import'' rule refers to a valid stylesheet,
61
- user agents must treat the contents of the stylesheet as if they were written in place of the ''@import'' rule.
61
+ user agents must treat the contents of the stylesheet as if they were written in place of the ''@import'' rule,
62
+ with two exceptions:
63
+
64
+ * If a feature <em> explicitly</em> defines that it only applies to a particular stylesheet,
65
+ and not any imported ones
66
+ (such as the ''@namespace'' rule),
67
+ then it doesn't apply to the imported stylesheet.
68
+ * If a feature relies on the relative position of two or more constructs in a stylesheet
69
+ (such as the requirement that an ''@else'' rule follow another <a>conditional group rule</a> ,
70
+ or the requirement that ''@charset'' must not have any other content preceding it),
71
+ it only applies between constructs in the same stylesheet.
62
72
63
73
<p class='example'>
64
74
For example, declarations in style rules from imported stylesheets interact with the cascade
You can’t perform that action at this time.
0 commit comments