Skip to content

Commit bf1c63e

Browse files
committed
[css-cascade-5] Make anonymous layer @imports use keyword form. w3c#5681
1 parent 4fcc3b2 commit bf1c63e

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

css-cascade-5/Overview.bs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,23 @@ Importing Style Sheets: the ''@import'' rule</h2>
125125

126126
<pre class='prod'>
127127
@import [ <<url>> | <<string>> ]
128-
[ layer(<<layer-ident>>?) ]?
128+
[ layer | layer(<<layer-ident>>) ]?
129129
[ supports( [ <<supports-condition>> | <<declaration>> ] ) ]?
130130
<<media-query-list>>? ;</pre>
131131

132-
where the <<url>> or <<string>> gives the URL of the style sheet to be imported,
133-
the optional <<layer-ident>> assigns imported rules to the indicated [=cascade layer=],
134-
and the optional [<<supports-condition>>|<<declaration>>] and <<media-query-list>>
135-
(collectively, the <dfn export>import conditions</dfn>)
136-
state the conditions under which it applies.
132+
where:
133+
134+
* the <<url>> or <<string>>
135+
gives the URL of the style sheet to be imported.
136+
137+
* the optional ''layer'' keyword or ''layer()'' function
138+
assigns the contents of the style sheet
139+
into its own anonymous [=cascade layer=]
140+
or into the named [=cascade layer=].
141+
142+
* the optional [<<supports-condition>>|<<declaration>>] and <<media-query-list>>
143+
(collectively, the <dfn export>import conditions</dfn>)
144+
state the conditions under which it applies.
137145

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

0 commit comments

Comments
 (0)