Skip to content

Commit 088b129

Browse files
committed
Use an active time of negative zero when in the before phase and backwards fill
This allows us to specify that a step-at-start timing function has an output time of zero when in this state, to match the behavior of all other timing functions.
1 parent abcbac3 commit 088b129

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@

Calculating the active time

19251925
<dt>If the <a>fill modea> is <span
19261926
class="prop-mode">backwardsspan> or <span
19271927
class="prop-mode">bothspan>,dt>
1928-
<dd>Return zero.dd>
1928+
<dd>Return negative zero.dd>
19291929
<dt>Otherwise,dt>
19301930
<dd>Return <code>nullcode>.dd>
19311931
dl>
@@ -2016,6 +2016,10 @@

Calculating the scaled active time

20162016
Return the scaled active time based on the
20172017
<a title="timed item playback rate">playback ratea> as follows,
20182018
<dl class="switch">
2019+
<dt>If the <a>active timea>is zero and the <a>start offseta> is zero,dt>
2020+
<dd>
2021+
Return the <a>active timea> (maintaining its sign).
2022+
dd>
20192023
<dt>If the <a title="timed item playback rate">playback ratea>
20202024
is zero,dt>
20212025
<dd>
@@ -2446,7 +2450,10 @@

Timing in discrete steps

24462450
interval timing (see <a href="#interval-timing"
24472451
class="sectionRef">a>), the output time at the transition point is
24482452
the time <em>afterem> applying the increase (i.e. the top of the
2449-
step).
2453+
step). Note, however, that at an input time of negative zero, the
2454+
output time of all step timing functions is zero, even if the
2455+
transition is at the start of the interval. This is true of all
2456+
<a>timing functionsa>.
24502457
p>
24512458
<p>
24522459
A <a>step timing functiona> may be specified as a string

0 commit comments

Comments
 (0)