Skip to content

Commit d554225

Browse files
committed
[css-cascade-5] Revert-layer in style attr does not revert author layers w3c#6743
1 parent 6ff3823 commit d554225

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

css-cascade-5/Overview.bs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,22 +1856,11 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
18561856
as if no rules were specified in the current [=cascade layer=]--
18571857
or between its [=normal=] and [=important=] levels in the [=cascade=]--
18581858
for this property on this element.
1859-
1860-
ISSUE: <a href="#style-attr">Element-attached styles</a> (i.e. style attribute declarations)
1861-
do not follow the sandwich rule for their normal and important levels,
1862-
so strictly interpreted a ''!important'' style attribute declaration
1863-
would revert the style attribute styles as well as all ''!important'' author-origin styles,
1864-
but <em>not</em> any of the other author-origin ''!important'' rules.
1865-
Is this what we want, or do we want something different?
1866-
See <a href="https://github.com/w3c/csswg-drafts/issues/6743#issuecomment-970669172">Issue 6743 discussion</a>.
1867-
1868-
<!-- replace text in note below with the following normative text if we want to not revert important author rules
18691859
For ''revert-layer'' in [=important=] <a href="#style-attr">element-attached styles</a>,
18701860
however,
18711861
it only reverts the <a href="#style-attr">element-attached styles</a>
18721862
and the intervening [=animation origin=],
18731863
and not any of the intervening [=author-origin=] [=important=] rules.
1874-
-->
18751864

18761865
Note: If there are no lower-priority declarations
18771866
in the same [=cascade origin=] as the ''revert-layer'' value,
@@ -1880,15 +1869,6 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
18801869
Note: The [=animation origin=] is not collapsed with the [=author origin=] for this purpose
18811870
as it is for ''revert'',
18821871
and thus effectively forms its own [=cascade layer=].
1883-
<a href="#style-attr">Element-attached styles</a>
1884-
likewise form their own [=cascade layer=];
1885-
however, since [=author origin=] [=important=] rules are sorted
1886-
between their [=normal=] and [=important=] levels,
1887-
an element-attached [=important=] ''revert-layer'' declaration will revert through
1888-
all [=author origin=] [=important=] declarations as well as the [=animation origin=]
1889-
along with its own [=normal=] declarations,
1890-
but not through any other [=author origin=] [=normal=] declarations.
1891-
18921872

18931873
<h2 id="layer-apis">Layer APIs</h2>
18941874

0 commit comments

Comments
 (0)