Skip to content

Commit 2a2200e

Browse files
committed
[css-cascade-5][editorial] Define import condition as syntax production
1 parent 2ba8489 commit 2a2200e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

css-cascade-5/Overview.bs

+7-6
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,13 @@ Importing Style Sheets: the ''@import'' rule</h2>
135135
or else the ''@import'' rule is invalid.
136136
The syntax of ''@import'' is:
137137

138-
<pre class='prod'>
138+
<pre class='prod'>
139139
@import [ <<url>> | <<string>> ]
140140
[ layer | layer(<<layer-name>>) ]?
141-
[ supports( [ <<supports-condition>> | <<declaration>> ] ) ]?
142-
<<media-query-list>>? ;</pre>
141+
<<import-condition>> ;
142+
143+
<dfn export>&lt;import-condition></dfn> = [ supports( [ <<supports-condition>> | <<declaration>> ] ) ]?
144+
<<media-query-list>>? ;</pre>
143145

144146
where:
145147

@@ -157,9 +159,8 @@ Importing Style Sheets: the ''@import'' rule</h2>
157159
(just as if declared by an ''@layer'' rule wrapped
158160
in the appropriate [=conditional group rules=]).
159161

160-
* the optional [<<supports-condition>>|<<declaration>>] and <<media-query-list>>
161-
(collectively, the <dfn export>import conditions</dfn>)
162-
state the conditions under which it applies.
162+
* the optional <<import-condition>>
163+
states the conditions under which it applies.
163164

164165
<div class="example">
165166
The following <a href="#conditional-import">conditional <css>@import</css> rule</a>

0 commit comments

Comments
 (0)