@@ -7,6 +7,8 @@ Work Status: Exploring
77Group : csswg
88ED : https://drafts.csswg.org/css-cascade/
99TR : https://www.w3.org/TR/css-cascade-5/
10+ Previous Version : https://www.w3.org/TR/2021/WD-css-cascade-5-20210317/
11+ Previous Version : https://www.w3.org/TR/2021/WD-css-cascade-5-20210119/
1012Editor : Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact, w3cid 35400
1113Editor : Miriam E. Suzanne, Invited Expert, http://miriamsuzanne.com/contact, w3cid 117151
1214Editor : Tab Atkins Jr., Google, http://xanthir.com/contact/, w3cid 42199
@@ -1219,8 +1221,8 @@ Declaring Cascade Layers: the ''@layer'' rule</h4>
12191221 are cascaded within the same layer as the <code> audio[controls] </code> rule:
12201222
12211223 <pre class='lang-css'>
1222- @layer default url(headings.css);
1223- @layer default url(links.css);
1224+ @import url(headings.css) layer(default );
1225+ @import url(links.css) layer(default );
12241226
12251227 @layer default {
12261228 audio[controls] {
@@ -1245,7 +1247,7 @@ Declaring Cascade Layers: the ''@layer'' rule</h4>
12451247 @layer theme;
12461248 @layer components;
12471249
1248- @layer theme url(theme.css);
1250+ @import url(theme.css) layer(theme );
12491251
12501252 @layer default {
12511253 audio[controls] {
@@ -1259,7 +1261,7 @@ Declaring Cascade Layers: the ''@layer'' rule</h4>
12591261 <pre class='lang-css'>
12601262 @layer default, theme, components;
12611263
1262- @layer theme url(theme.css);
1264+ @import url(theme.css) layer(theme );
12631265
12641266 @layer default {
12651267 audio[controls] {
@@ -1392,9 +1394,9 @@ Un-Named Layers</h5>
13921394 <pre class='lang-css'>
13931395 /* bootstrap-base.css */
13941396 /* unnamed wrapper layers around each sub-file */
1395- @layer url(base-forms.css);
1396- @layer url(base-links.css);
1397- @layer url(base-headings.css);
1397+ @import url(base-forms.css) layer ;
1398+ @import url(base-links.css) layer ;
1399+ @import url(base-headings.css) layer ;
13981400
13991401 /* bootstrap.css */
14001402 /* the internal names are hidden from access, subsumed in "base" */
@@ -1572,16 +1574,24 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
15721574<h2 id="changes">
15731575Changes</h2>
15741576
1577+ Changes since the <a href="https://www.w3.org/TR/2021/WD-css-cascade-5-20210119/">19 January 2021 First Public Working Draft</a> include:
1578+
1579+ * Switched [=layer=] import syntax from using ''@layer'' to using ''@import'' .
1580+ (<a href="https://github.com/w3c/csswg-drafts/issues/5681">Issue 5681</a> )
1581+ * Added ''revert-layer'' keyword.
1582+ (<a href="https://github.com/w3c/csswg-drafts/issues/5793">Issue 5793</a> )
1583+
15751584<h3 id="additions-l4">
15761585Additions Since Level 4</h3>
15771586
15781587 The following features have been added since
15791588 <a href="https://www.w3.org/TR/css-cascade-4/">Level 4</a> :
15801589
1581- * Added ''layer()'' option to ''@import'' definition.
1582- * Added [=cascade layers=] to the [=cascade=] sort criteria.
1583- * Defined style attributes as a distinct step of the [=cascade=] sort criteria .
1590+ * Added [=cascade layers=] to the [=cascade=] sort criteria
1591+ (and defined style attributes as a distinct step of the [=cascade=] sort criteria
1592+ so that they interact appropriately) .
15841593 * Introduced the ''@layer'' rule for defining cascade layers.
1594+ * Added ''layer'' /''layer()'' option to ''@import'' definition.
15851595 * Introduced the ''revert-layer'' keyword for rolling back values to previous layers.
15861596
15871597<h3 id="additions-l3">
0 commit comments