Skip to content

Commit b255d54

Browse files
committed
[css-display-4] Make 'display' animatable. w3c#6429
1 parent b4d9176 commit b255d54

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

css-display-4/Overview.bs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Box Layout Modes: the 'display' property</h2>
225225
Applies to: all elements
226226
Inherited: no
227227
Computed value: a pair of keywords representing the [=inner display type|inner=] and [=outer display type|outer=] display types plus optional ''list-item'' flag, or a <<display-internal>> or <<display-box>> keyword; see prose in a variety of specs for computation rules
228-
Animation type: not animatable
228+
Animation type: see [[#display-animation]]
229229
</pre>
230230

231231
<p class=all-media>User agents are expected to support this property on all media, including non-visual ones.
@@ -857,6 +857,23 @@ The Root Element’s Principal Box</h3>
857857

858858
Additionally, a 'display' of ''display/contents'' computes to ''block'' on the root element.
859859

860+
<h3 id='display-animation'>
861+
Animating and Interpolating 'display'</h3>
862+
863+
In general,
864+
the 'display' property’s [=animation type=] is [=discrete=].
865+
However--
866+
similar to when animating 'visibility'
867+
(see [[web-animations-1#animating-visibility]])--
868+
during interpolation between ''display/none''
869+
and any other 'display' value,
870+
<var>p</var> values between 0 and 1
871+
map to the non-''display/none'' value.
872+
873+
Additionally,
874+
the 'display' property is ignored
875+
when specified in <a spec=web-animations-1>animation effects</a> or ''@keyframes'' rules.
876+
860877
<!--
861878
██ ██ ███████ ██ ██ ████████
862879
███ ██ ██ ██ ███ ██ ██
@@ -2091,6 +2108,7 @@ Additions since Level 3</h3>
20912108

20922109
* the 'layout-order' and 'reading-order' [=longhand properties=] of 'order'
20932110
(<a href="https://github.com/w3c/csswg-drafts/issues/7387#issuecomment-1217193918">Issue 7387</a>)
2111+
* the ability to animate 'display'
20942112

20952113
<h2 id="priv" class="no-num">
20962114
Privacy Considerations</h2>

0 commit comments

Comments
 (0)