Skip to content

Commit d554225

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

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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
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: Element-attached styles (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 not any of the other author-origin ''!important'' rules.
1865-
Is this what we want, or do we want something different?
1866-
1867-
1868-
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
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-
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

Layer APIs

18941874

0 commit comments

Comments
 (0)