Skip to content

Commit 6597304

Browse files
committed
[css-display-4] 'display: none' in keyframes becomes 'revert-layer'. Address inertness. #7778
1 parent 4cf807e commit 6597304

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

css-display-4/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,10 +869,15 @@ Animating and Interpolating 'display'</h3>
869869
and any other 'display' value,
870870
<var>p</var> values between 0 and 1
871871
map to the non-''display/none'' value.
872-
873872
Additionally,
874-
the 'display' property is ignored
875-
when specified in <a spec=web-animations-1>animation effects</a> or ''@keyframes'' rules.
873+
the element is [=inert=]
874+
as long as its 'display' value would compute to ''display/none''
875+
when ignoring the Transitions and Animations [=cascade origins=].
876+
877+
Because a value of ''display/none'' would interrupt the animation,
878+
a declared value of ''display/none''
879+
in an <a spec=web-animations-1>animation effect</a> or ''@keyframes'' rule
880+
is replaced with ''display/revert-layer''.
876881

877882
<!--
878883
██ ██ ███████ ██ ██ ████████

0 commit comments

Comments
 (0)