Skip to content

Commit 9c4a3a1

Browse files
committed
[css-timing] Drop clamping from steps() timing function
1 parent 35d6c36 commit 9c4a3a1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

css-timing/Overview.bs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,14 @@ The [=output progress value=] is calculated from the [=input progress value=]
234234
and [=before flag=] as follows:
235235

236236
1. Calculate the <var>current step</var> as <code>floor([=input progress
237-
value=] &times; [=steps=])</code> clamped to the range [0,
238-
[=steps=]].
237+
value=] &times; [=steps=])</code>.
239238

240-
1. If the [=step position=] property is <a value for="steps()">start</a> and
241-
<var>current step</var> &lt; [=steps=], increment <var>current
242-
step</var> by one.
239+
1. If the [=step position=] property is <a value for="steps()">start</a>,
240+
increment <var>current step</var> by one.
243241

244-
1. If <em>all</em> of the following conditions are true:
242+
1. If <em>both</em> of the following conditions are true:
245243

246-
* the [=before flag=] is set,
247-
* <var>current step</var> &gt; 0, <em>and</em>
244+
* the [=before flag=] is set, <em>and</em>
248245
* [=input progress value=] &times; [=steps=] mod 1 equals zero
249246
(that is, if [=input progress value=] &times; [=steps=] is
250247
integral), then

0 commit comments

Comments
 (0)