Skip to content

Commit 6ff3823

Browse files
committed
[css-cascade-5][editorial] Document issue with revert-layer in style attr
1 parent b7c7a15 commit 6ff3823

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

css-cascade-5/Overview.bs

+16
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,22 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
18571857
or between its [=normal=] and [=important=] levels in the [=cascade=]--
18581858
for this property on this element.
18591859

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
1869+
For ''revert-layer'' in [=important=] <a href="#style-attr">element-attached styles</a>,
1870+
however,
1871+
it only reverts the <a href="#style-attr">element-attached styles</a>
1872+
and the intervening [=animation origin=],
1873+
and not any of the intervening [=author-origin=] [=important=] rules.
1874+
-->
1875+
18601876
Note: If there are no lower-priority declarations
18611877
in the same [=cascade origin=] as the ''revert-layer'' value,
18621878
the <a>cascaded value</a> will roll back to the previous origin.

0 commit comments

Comments
 (0)