Skip to content

Commit 23e8ba6

Browse files
committed
[css-cascade-5] Minor clean-up of revert-level:
* Add to 'all' shorthand propdef * Remove resolved issue * Cross-link to definition of layers * Shift informative statement into a note
1 parent b1a1882 commit 23e8ba6

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

css-cascade-5/Overview.bs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Resetting All Properties: the 'all' property</h3>
406406

407407
<pre class="propdef shorthand">
408408
Name: all
409-
Value: initial | inherit | unset | revert
409+
Value: initial | inherit | unset | revert | revert-layer
410410
</pre>
411411

412412
The 'all' property is a <a>shorthand</a>
@@ -1126,7 +1126,7 @@ Cascade Layers</h3>
11261126

11271127
In the same way that [=cascade origins=] provide a balance of power
11281128
between user and author styles,
1129-
<dfn export>cascade layers</dfn> provide a structured way
1129+
<dfn export local-lt="layer">cascade layers</dfn> provide a structured way
11301130
to organize and balance concerns within a single origin.
11311131
Authors can create layers to represent element defaults,
11321132
third-party libraries, themes, components,
@@ -1159,8 +1159,6 @@ Cascade Layers</h3>
11591159
and come first in the source order.
11601160
</div>
11611161

1162-
Issue(w3c/csswg-drafts#5793): Do we need a keyword similar to `revert`, but for cascade layers?
1163-
11641162
<h4 id="at-layer">
11651163
Declaring Cascade Layers: the ''@layer'' rule</h4>
11661164

@@ -1542,14 +1540,15 @@ Rolling Back Cascade Origins: the ''revert'' keyword</h4>
15421540
Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
15431541

15441542
If the <a>cascaded value</a> of a property is the <dfn for=all>''revert-layer''</dfn> keyword,
1545-
the <a>cascaded value</a> is rolled back to the layer below,
1543+
the <a>cascaded value</a> is rolled back to the [=layer=] below,
15461544
so that the <a>specified value</a> is calculated
1547-
as if no rules were specified in the current layer
1545+
as if no rules were specified in the current [=cascade layer=]
15481546
for this property on this element.
1549-
If there are no lower-priority layers in the same [=cascade origin=]
1550-
as the ''revert-layer'' value,
1551-
the <a>cascaded value</a> may be rolled back to a previous origin,
1552-
as defined by the [=revert=] keyword.
1547+
1548+
Note: If there are no lower-priority layers
1549+
in the same [=cascade origin=] as the ''revert-layer'' value,
1550+
the <a>cascaded value</a> will roll back to the previous origin,
1551+
just as for the [=revert=] keyword.
15531552

15541553

15551554
<!--

0 commit comments

Comments
 (0)