Skip to content

Commit dfe47f6

Browse files
committed
[css-cascade-5] Clarify the behavior of layer syntax in @import w3c#6776
1 parent 6e8482b commit dfe47f6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

css-cascade-5/Overview.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ Importing Style Sheets: the ''@import'' rule</h2>
146146
into its own anonymous [=cascade layer=]
147147
or into the named [=cascade layer=].
148148

149+
The layer is added to the [[#layer-ordering|layer order]]
150+
even if the import fails to load the stylesheet,
151+
but is subject to any [=import conditions=]
152+
(just as if declared by an ''@layer'' rule wrapped
153+
in the appropriate [=conditional group rules=]).
154+
149155
* the optional [<<supports-condition>>|<<declaration>>] and <<media-query-list>>
150156
(collectively, the <dfn export>import conditions</dfn>)
151157
state the conditions under which it applies.
@@ -1946,6 +1952,9 @@ Non-trivial changes since the <a href="https://www.w3.org/TR/2021/WD-css-cascade
19461952
(<a href="https://github.com/w3c/csswg-drafts/issues/6193">Issue 6193</a>)
19471953
* Added [[#layer-apis]] section.
19481954
(<a href="https://github.com/w3c/csswg-drafts/issues/6576">Issue 6576</a>)
1955+
* Clarified the behavior of the ''layer'' keyword and ''layer()'' function
1956+
on ''@import'' rules.
1957+
(<a href="https://github.com/w3c/csswg-drafts/issues/6776">Issue 6776</a>)
19491958

19501959
<h3 id="changes-2021-08">
19511960
Changes since the 29 August 2021 Working Draft</h3>

0 commit comments

Comments
 (0)