Skip to content

Commit e58ba4a

Browse files
committed
Actually address the clamping issue.
1 parent 936b697 commit e58ba4a

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

css3-transitions/Overview.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,9 +1149,11 @@ <h2 id=animatable-types><span class=secno>6. </span><a
11491149
<i>V</i><sub>res</sub> = (1 - <i>p</i>) ⋅ <i>V</i><sub>start</sub> +
11501150
<i>p</i><i>V</i><sub>end</sub>.
11511151

1152-
<p class=issue>Issue: Need to describe handling of out-of-range values that
1153-
can result from cubic-bezier(). Clamping values to the allowed range is
1154-
probably the best solution.
1152+
<p> However, if this value (<i>V</i><sub>res</sub>) is outside the allowed
1153+
range of values for the property, then it is clamped to that range. This
1154+
can occur if <i>p</i> is outside of the range 0 to 1, which can occur if a
1155+
timing function is specified with a <i>y1</i> or <i>y2</i> that is outside
1156+
the range 0 to 1.
11551157

11561158
<p> The following describes how each property type undergoes transition or
11571159
animation.

css3-transitions/Overview.src.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,9 +1129,14 @@ <h2 id="animatable-types"><a id=animation-of-property-types->
11291129
<i>p</i> &sdot; <i>V</i><sub>end</sub>.
11301130
</p>
11311131

1132-
<p class="issue">Issue: Need to describe handling of out-of-range
1133-
values that can result from cubic-bezier(). Clamping values to the
1134-
allowed range is probably the best solution.</p>
1132+
<p>
1133+
However, if this value (<i>V</i><sub>res</sub>)
1134+
is outside the allowed range of values for the property,
1135+
then it is clamped to that range.
1136+
This can occur if <i>p</i> is outside of the range 0 to 1,
1137+
which can occur if a timing function is specified
1138+
with a <i>y1</i> or <i>y2</i> that is outside the range 0 to 1.
1139+
</p>
11351140

11361141
<p>
11371142
The following describes how each property type undergoes transition or

0 commit comments

Comments
 (0)