Skip to content

Commit

Permalink
[css-easing-2][editorial] Add a note about handling infinite progress…
Browse files Browse the repository at this point in the history
… values. #8344
  • Loading branch information
tabatkins committed Sep 12, 2024
1 parent c269215 commit 4c55ed2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions css-easing-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ may be outside the range [0, 1].
The <dfn>output progress value</dfn> is a real number in the
range [-&infin;, &infin;].

Note: While CSS numbers have a theoretically infinite range
(see [[css-values-4#numeric-ranges]])
UAs will automatically clamp enormous numbers to a reasonable range.
If easing functions are used outside of the CSS context,
care must be taken to either correctly handle potential infinities,
or clamp the [=output progress value=].

Some types of easing functions also take an additional boolean [=before flag=]
input which is defined subsequently.

Expand Down

0 comments on commit 4c55ed2

Please sign in to comment.