Skip to content

Commit c4e14bc

Browse files
committed
[css-cascade-4][css-cascade-5] Clarify that revert/revert-layer affect all aliases of a property. w3c#7054
1 parent cfead37 commit c4e14bc

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

css-cascade-4/Overview.bs

+7
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,12 @@ Rolling Back Cascade Origins: the ''revert'' keyword</h4>
12871287
For the purpose of ''revert'', this origin includes the Animation <a>origin</a>.
12881288
</dl>
12891289

1290+
Note: Effectively the ''revert'' keyword is substituted with
1291+
the value from the earlier [=cascade origin=].
1292+
Thus, reverting a [=shorthand property=] reverts all its longhands;
1293+
reverting any [[#aliasing|property alias]] of a property reverts all of them;
1294+
reverting one of the paired properties in a [=logical property group=]
1295+
also reverts the other one; etc.
12901296

12911297
<!--
12921298
████████ ████████ ██████
@@ -1307,6 +1313,7 @@ Changes</h2>
13071313
Non-trivial changes since the <a href="https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/">13 Jan 2022 Candidate Recommendation Snapshot</a>:
13081314

13091315
<!-- to 11 Jan 2022 -->
1316+
* Clarify that all “aliases” of a property are reverted by ''revert''.
13101317

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

css-cascade-5/Overview.bs

+13-2
Original file line numberDiff line numberDiff line change
@@ -1874,12 +1874,22 @@ Rolling Back Cascade Origins: the ''revert'' keyword</h4>
18741874
For the purpose of ''revert'', this origin includes the Animation <a>origin</a>.
18751875
</dl>
18761876

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+
18771884
<h4 id="revert-layer">
18781885
Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
18791886

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=].
18801890
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=],
18831893
so that the <a>specified value</a> is calculated
18841894
as if no rules were specified in the current [=cascade layer=]--
18851895
or between its [=normal=] and [=important=] levels in the [=cascade=]--
@@ -1985,6 +1995,7 @@ Changes since the 13 Jan 2022 Candidate Recommendation Snapshot</h3>
19851995
Non-trivial changes since the <a href="CSS Cascading and Inheritance Level 5">Candidate Recommendation Snapshot</a>:
19861996

19871997
<!-- to 11 Jan 2022 -->
1998+
* Clarify that all “aliases” of a property are reverted by ''revert''/''revert-layer''.
19881999

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

0 commit comments

Comments
 (0)