Skip to content

Commit c269215

Browse files
committed
[css-easing-2] Whoops, use the *last* output when multiple points have the same input, rather than the *largest* output.
1 parent 1d5bb67 commit c269215

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

css-easing-2/Overview.bs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ Output</h4>
299299

300300
3. If at least one of |points| has an [=input progress value=]
301301
matching |inputProgress|,
302-
return the largest [=output progress value=] from among them.
302+
return the [=output progress value=] of the last such point.
303303

304304
4. Otherwise, find two [=linear()/control points=],
305305
|A| and |B|,
@@ -317,11 +317,9 @@ Output</h4>
317317
If |A| and |B| have the same [=input progress value=],
318318
return |B|'s [=output progress value=].
319319

320-
3. Otherwise, let |A| be the [=linear()/control point=]
321-
with the largest [=output progress value=]
320+
3. Otherwise, let |A| be the last [=linear()/control point=]
322321
whose [=input progress value=] is smaller than |inputProgress|,
323-
and let |B| be the [=linear()/control point=]
324-
with the smallest [=output progress value=]
322+
and let |B| be the first [=linear()/control point=]
325323
whose [=input progress value=] is larger than |inputProgress|.
326324

327325
5. Linearly interpolate (or extrapolate) |inputProgress|

0 commit comments

Comments
 (0)