Skip to content

Commit b14636c

Browse files
committed
[css-cascade-5] Clarify that only @layer statement rules are allowed before @import, not empty @layer blocks. w3c#7566
1 parent 9182eda commit b14636c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

css-cascade-5/Overview.bs

+4-3
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Importing Style Sheets: the ''@import'' rule</h2>
129129
as if they were written literally into the stylesheet at the point of the ''@import''.
130130

131131
Any ''@import'' rules must precede all other valid at-rules and style rules in a style sheet
132-
(ignoring ''@charset'' and empty ''@layer'' definitions)
132+
(ignoring ''@charset'' and <a href="#layer-empty"><css>@layer</css> statement</a> rules)
133133
and must not have any other valid at-rules or style rules between it and previous ''@import'' rules,
134134
or else the ''@import'' rule is invalid.
135135
The syntax of ''@import'' is:
@@ -1993,11 +1993,12 @@ Changes</h2>
19931993
<h3 id="changes-2022-01">
19941994
Changes since the 13 Jan 2022 Candidate Recommendation Snapshot</h3>
19951995

1996-
Non-trivial changes since the <a href="CSS Cascading and Inheritance Level 5">Candidate Recommendation Snapshot</a>:
1996+
Non-trivial changes since the <a href="CSS Cascading and Inheritance Level 5">13 January 2022 Candidate Recommendation Snapshot</a>:
19971997

1998-
<!-- to 11 Jan 2022 -->
1998+
<!-- to 13 Jan 2022 -->
19991999
* Clarify that all “aliases” of a property are reverted by ''revert''/''revert-layer''.
20002000
* Clarify that style sheets are ordered in [[final CSS style sheets]] order.
2001+
* Clarify that only ''@layer'' statement rules are ignored when checking validity of ''@import'', not empty ''@layer'' block rules.
20012002

20022003
<h3 id="changes-2021-10">
20032004
Changes since the 15 Oct 2021 Working Draft</h3>

0 commit comments

Comments
 (0)