@@ -1198,13 +1198,13 @@ Important Declarations: the ''!important'' annotation</h3>
11981198 </div>
11991199
12001200<!--
1201- ██ ███ ██ ██ ████████ ████████ ██████
1201+ ██ ███ ██ ██ ████████ ████████ ██████
12021202██ ██ ██ ██ ██ ██ ██ ██ ██ ██
1203- ██ ██ ██ ████ ██ ██ ██ ██
1204- ██ ██ ██ ██ ██████ ████████ ██████
1203+ ██ ██ ██ ████ ██ ██ ██ ██
1204+ ██ ██ ██ ██ ██████ ████████ ██████
12051205██ █████████ ██ ██ ██ ██ ██
12061206██ ██ ██ ██ ██ ██ ██ ██ ██
1207- ████████ ██ ██ ██ ████████ ██ ██ ██████
1207+ ████████ ██ ██ ██ ████████ ██ ██ ██████
12081208-->
12091209
12101210<h3 id='layering'>
@@ -1901,6 +1901,37 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
19011901 and the intervening [=animation origin=] ,
19021902 and not any of the intervening [=author-origin=] [=important=] rules.
19031903
1904+ <div class="example">
1905+ For example,
1906+ applying ''revert-layer'' to the 'height' in layer <code> two</code> ,
1907+ reverts the 'height' property to the value
1908+ defined in layer <code> one</code> ,
1909+ yielding a 'height' of <code> 100px</code> .
1910+
1911+ <pre class='lang-css'>
1912+ @layer one {
1913+ div { height: 100px }
1914+ }
1915+
1916+ @layer two {
1917+ div { height: 200px }
1918+ div { height: revert-layer }
1919+ }
1920+ </pre>
1921+
1922+ Note that since 'height' and 'block-size' are
1923+ paired properties in a [=logical property group=] ,
1924+ the following layer <code> two</code> declaration
1925+ would also revert to the 'height' defined in layer <code> one</code> .
1926+
1927+ <pre class='lang-css'>
1928+ @layer two {
1929+ div { height: 200px }
1930+ div { block-size: revert-layer }
1931+ }
1932+ </pre>
1933+ </div>
1934+
19041935 Note: If there are no lower-precedence [=declarations=]
19051936 in the same [=cascade origin=] as the ''revert-layer'' value,
19061937 the <a>cascaded value</a> will roll back to the previous origin.
0 commit comments