Skip to content

Commit 4c55ed2

Browse files
committed
[css-easing-2][editorial] Add a note about handling infinite progress values. w3c#8344
1 parent c269215 commit 4c55ed2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-easing-2/Overview.bs

+7
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ may be outside the range [0, 1].
115115
The <dfn>output progress value</dfn> is a real number in the
116116
range [-&infin;, &infin;].
117117

118+
Note: While CSS numbers have a theoretically infinite range
119+
(see [[css-values-4#numeric-ranges]])
120+
UAs will automatically clamp enormous numbers to a reasonable range.
121+
If easing functions are used outside of the CSS context,
122+
care must be taken to either correctly handle potential infinities,
123+
or clamp the [=output progress value=].
124+
118125
Some types of easing functions also take an additional boolean [=before flag=]
119126
input which is defined subsequently.
120127

0 commit comments

Comments
 (0)