Skip to content

Commit 85ca304

Browse files
committed
[web-animations-1] Inline active duration calculation into definition.
#8985 (comment)
1 parent 3f89c42 commit 85ca304

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

web-animations-1/Overview.bs

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,9 +2617,21 @@ Animation effects {#animation-effects}
26172617
which is a signed offset from the [=start time=] of the [=animation=].
26182618

26192619
The length of the [=active interval=] is called the <dfn>active duration</dfn>,
2620-
the calculation of which is defined in [[#calculating-the-active-duration]].
2620+
and is determined by the [=iteration duration=] and [=iteration count=].
26212621
Its length determines the upper bound of the [=active interval=].
26222622

2623+
<blockquote id="calculating-the-active-duration">
2624+
[=active duration=] =
2625+
<code><a>iteration duration</a> × <a>iteration count</a></code>
2626+
</blockquote>
2627+
2628+
If either the [=iteration duration=] or [=iteration count=] are zero,
2629+
the [=active duration=] is zero.
2630+
2631+
Note: This clarification is needed
2632+
since the result of infinity multiplied by zero
2633+
is undefined according to IEEE 754-2008.
2634+
26232635
<div class=informative-bg>
26242636

26252637
The relationship between
@@ -3165,22 +3177,6 @@ Animation effects {#animation-effects}
31653177

31663178
</div>
31673179

3168-
#### Calculating the active duration #### {#calculating-the-active-duration}
3169-
3170-
The [=active duration=] is calculated as follows:
3171-
3172-
<blockquote>
3173-
[=active duration=] =
3174-
<code><a>iteration duration</a> × <a>iteration count</a></code>
3175-
</blockquote>
3176-
3177-
If either the [=iteration duration=] or [=iteration count=] are zero,
3178-
the [=active duration=] is zero.
3179-
3180-
Note: This clarification is needed
3181-
since the result of infinity multiplied by zero
3182-
is undefined according to IEEE 754-2008.
3183-
31843180
### Direction control ### {#direction-control}
31853181

31863182
[=Animation effects=] can also be configured
@@ -3273,9 +3269,6 @@ Calculating progress {#core-animation-effect-calculations}
32733269
</figcaption>
32743270
</figure>
32753271

3276-
The process for calculating the [=active duration=]
3277-
is normatively defined in [[#calculating-the-active-duration]].
3278-
32793272
Having established the [=active duration=],
32803273
the process for transforming an [=animation effect=]’s [=local time=]
32813274
into its [=transformed progress=] ([=iteration progress=])

0 commit comments

Comments
 (0)