Skip to content

Commit 2db569f

Browse files
committed
Define rules for transitioning 'visibility' so that transitions where one of the values is 'collapse' have defined behavior.
This is largely as proposed in http://lists.w3.org/Archives/Public/www-style/2012Feb/1083.html and resolved in the 2012 March 7 teleconference (minutes at http://lists.w3.org/Archives/Public/www-style/2012Mar/0195.html ). However, I realized we didn't discuss the issue of what happens when the result of the timing functions it outside of (0, 1). I addressed this as described in http://lists.w3.org/Archives/Public/www-style/2012Mar/0597.html
1 parent 1aa9850 commit 2db569f

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

css3-transitions/Overview.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,9 +1141,15 @@ <h2 id=animation-of-property-types-><span class=secno>6. </span> Animation
11411141
<li> <strong>rectangle</strong>: interpolated via the x, y, width and
11421142
height components (treating each as a number).
11431143

1144-
<li> <strong>visibility</strong>: interpolated via a discrete step. The
1145-
interpolation happens in real number space between 0 and 1, where 0 is
1146-
"hidden" and all other values are "visible".
1144+
<li> <strong>visibility</strong>: if one of the values is &lsquo;<code
1145+
class=property>visible</code>&rsquo;, interpolated as a discrete step
1146+
where values of the timing function between 0 and 1 map to &lsquo;<code
1147+
class=property>visible</code>&rsquo; and other values of the timing
1148+
function (which occur only at the start/end of the transition or as a
1149+
result of &lsquo;<code class=css>cubic-bezier()</code>&rsquo; functions
1150+
with Y values outside of [0, 1]) map to the closer endpoint; if neither
1151+
value is &lsquo;<code class=property>visible</code>&rsquo; then not
1152+
interpolable.
11471153

11481154
<li> <strong>shadow</strong>: interpolated via the color, x, y and blur
11491155
components (treating them as color and numbers where appropriate). In the

css3-transitions/Overview.src.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,14 @@ <h2 id="animation-of-property-types-">
11241124
width and height components (treating each as a number).
11251125
</li>
11261126
<li>
1127-
<strong>visibility</strong>: interpolated via a discrete
1128-
step. The interpolation happens in real number space between 0 and 1,
1129-
where 0 is "hidden" and all other values are "visible".
1127+
<strong>visibility</strong>: if one of the values is
1128+
'visible', interpolated as a discrete step where values of the
1129+
timing function between 0 and 1 map to 'visible' and other
1130+
values of the timing function (which occur only at the
1131+
start/end of the transition or as a result of 'cubic-bezier()'
1132+
functions with Y values outside of [0, 1]) map to the closer
1133+
endpoint; if neither value is 'visible' then not interpolable.
1134+
</span>
11301135
</li>
11311136
<li>
11321137
<strong>shadow</strong>: interpolated via the color, x, y

0 commit comments

Comments
 (0)