Skip to content

Commit 4ec1deb

Browse files
committed
Make the definition of "is current" reflect the associated animation's playback rate
Fixes w3c#3193.
1 parent 2da7055 commit 4ec1deb

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

web-animations-1/Overview.bs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,9 +2226,8 @@ follows:
22262226

22272227
: <a>current</a>
22282228
:: Corresponds to an <a>animation effect</a> that is either <a>in
2229-
play</a> or may become <a>in play</a> in the future.
2230-
This will be the case if the <a>animation effect</a> is <a>in
2231-
play</a> or in its <a>before phase</a>.
2229+
play</a> or may become <a>in play</a> in the future based on its
2230+
[=animation=]'s current [=playback rate=].
22322231

22332232
: <a>in effect</a>
22342233
:: Corresponds to an <a>animation effect</a> that has a resolved
@@ -2291,11 +2290,16 @@ of the following conditions are met:
22912290
2. the <a>animation effect</a> is <a>associated with an animation</a> that is not
22922291
<a lt="finished play state">finished</a>.
22932292

2294-
An <a>animation effect</a> is <dfn>current</dfn> if <em>either</em>
2295-
of the following conditions is true:
2293+
An <a>animation effect</a> is <dfn>current</dfn> if <em>any</em>
2294+
of the following conditions are true:
22962295

2297-
* the <a>animation effect</a> is in the <a>before phase</a>, or
2298-
* the <a>animation effect</a> is <a>in play</a>.
2296+
* the [=animation effect=] is [=in play=], or
2297+
* the [=animation effect=] is [=associated with an animation=] with
2298+
a [=playback rate=] &ge; 0 and
2299+
the [=animation effect=] is in the [=before phase=], or
2300+
* the [=animation effect=] is [=associated with an animation=] with
2301+
a [=playback rate=] &lt; 0 and
2302+
the [=animation effect=] is in the [=after phase=].
22992303

23002304
An animation effect is <dfn>in effect</dfn> if its <a>active time</a>, as
23012305
calculated according to the procedure in [[#calculating-the-active-time]],
@@ -5785,7 +5789,9 @@ The following changes have been made since the <a
57855789
href="https://www.w3.org/TR/2018/WD-web-animations-1-20181011/">11 October
57865790
2018 Working Draft</a>:
57875791

5788-
(None yet)
5792+
* Made the definition of a [=current=] [=animation effect=] incorporate the
5793+
associated animation's [=playback rate=] (<a
5794+
href="https://github.com/w3c/csswg-drafts/issues/3193">#3193</a>).
57895795

57905796
The <a
57915797
href="https://github.com/w3c/csswg-drafts/commits/master/web-animations-1">changelog</a>

0 commit comments

Comments
 (0)