File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,17 @@ Importing Style Sheets: the ''@import'' rule</h2>
4545
4646 The <dfn>@import</dfn> rule allows users to import style rules from other style sheets.
4747 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.
4959
5060 <p class='example'>
5161 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>
5858
5959 The <dfn>@import</dfn> rule allows users to import style rules from other style sheets.
6060 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.
6272
6373 <p class='example'>
6474 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