@@ -1874,12 +1874,22 @@ Rolling Back Cascade Origins: the ''revert'' keyword</h4>
1874
1874
For the purpose of ''revert'' , this origin includes the Animation <a>origin</a> .
1875
1875
</dl>
1876
1876
1877
+ Note: Effectively the ''revert'' keyword is substituted with
1878
+ the value from the earlier [=cascade origin=] .
1879
+ Thus, reverting a [=shorthand property=] reverts all its longhands;
1880
+ reverting any [[#aliasing|property alias]] of a property reverts all of them;
1881
+ reverting one of the paired properties in a [=logical property group=]
1882
+ also reverts the other one; etc.
1883
+
1877
1884
<h4 id="revert-layer">
1878
1885
Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
1879
1886
1887
+ The <dfn value for=all>revert-layer</dfn> keyword
1888
+ rolls back the cascade similar to ''revert'' ,
1889
+ except it works by [=cascade layer=] rather than by [=cascade origin=] .
1880
1890
If the <a>cascaded value</a> of a property is
1881
- the <dfn value for=all> revert-layer</dfn> keyword,
1882
- the <a>cascaded value</a> is rolled back to the [=layer=] below ,
1891
+ the '' revert-layer'' keyword,
1892
+ the <a>cascaded value</a> is rolled back to the earlier [=layer=] ,
1883
1893
so that the <a>specified value</a> is calculated
1884
1894
as if no rules were specified in the current [=cascade layer=] --
1885
1895
or between its [=normal=] and [=important=] levels in the [=cascade=] --
@@ -1985,6 +1995,7 @@ Changes since the 13 Jan 2022 Candidate Recommendation Snapshot</h3>
1985
1995
Non-trivial changes since the <a href="CSS Cascading and Inheritance Level 5">Candidate Recommendation Snapshot</a> :
1986
1996
1987
1997
<!-- to 11 Jan 2022 -->
1998
+ * Clarify that all “aliases” of a property are reverted by ''revert'' /''revert-layer'' .
1988
1999
1989
2000
<h3 id="changes-2021-10">
1990
2001
Changes since the 15 Oct 2021 Working Draft</h3>
0 commit comments