Skip to content

Commit a64a842

Browse files
committed
[css-cascade-5] Clarify revert-layer on style attr and keyframes. w3c#6743 w3c#6749
1 parent 769fa8e commit a64a842

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

css-cascade-5/Overview.bs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,8 +1848,19 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
18481848

18491849
Note: If there are no lower-priority declarations
18501850
in the same [=cascade origin=] as the ''revert-layer'' value,
1851-
the <a>cascaded value</a> will roll back to the previous origin,
1852-
just as for the ''revert'' keyword.
1851+
the <a>cascaded value</a> will roll back to the previous origin.
1852+
1853+
Note: The [=animation origin=] is not collapsed with the [=author origin=] for this purpose
1854+
as it is for ''revert'',
1855+
and thus effectively forms its own [=cascade layer=].
1856+
<a href="#style-attr">Element-attached styles</a>
1857+
likewise form their own [=cascade layer=];
1858+
however, since [=author origin=] [=important=] rules are sorted
1859+
between their [=normal=] and [=important=] levels,
1860+
an element-attached [=important=] ''revert-layer'' declaration will revert through
1861+
all [=author origin=] [=important=] declarations as well as the [=animation origin=]
1862+
along with its own [=normal=] declarations,
1863+
but not through any other [=author origin=] [=normal=] declarations.
18531864

18541865

18551866
<!--

0 commit comments

Comments
 (0)