Skip to content

Commit 2d8763d

Browse files
committed
[web-animations-1] convert timeline state concept back to previous inactive timeline concept
1 parent e094ad6 commit 2d8763d

File tree

1 file changed

+15
-26
lines changed

1 file changed

+15
-26
lines changed

web-animations-1/Overview.bs

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,13 @@ purpose of synchronization.
632632
At any given moment, a [=timeline=] has a single current [=time value=] known
633633
simply as the timeline's <dfn export for=timeline>current time</dfn>.
634634

635+
A <a>timeline</a> may not always be able to return a meaningful <a>time
636+
value</a>, but only an <a>unresolved</a> time value.
637+
For example, it may be defined relative to a moment that has yet to occur,
638+
such as the firing of a document's load event.
639+
A <a>timeline</a> is considered to be <dfn lt="inactive timeline">inactive</dfn>
640+
when its <a>time value</a> is <a>unresolved</a>.
641+
635642
A <a>timeline</a> is <dfn export lt="monotonically increasing timeline"
636643
local-lt="monotonically increasing">monotonically increasing</dfn> if its
637644
reported [=timeline/current time=] is always greater than or equal
@@ -712,18 +719,6 @@ animation model to change, but these operations in themselves do not create
712719
a new [=animation frame=], rather they merely update the current <a>animation
713720
frame</a>.
714721

715-
<h3 oldids="timeline-phases" id="timeline-states">
716-
Timeline State</h3>
717-
718-
A [=timeline=]’s <dfn export lt="timeline state">state</dfn> may be either
719-
<dfn export for=timeline lt="timeline active state|active state">active</dfn> or
720-
<dfn export for=timeline lt="timeline inactive state|inactive state">inactive</dfn>
721-
722-
A [=timeline=] in the [=timeline inactive state|inactive state=] can
723-
also be called an <dfn export>inactive timeline</dfn>
724-
725-
An [=inactive timeline=] has an [=unresolved=] [=timeline/current time=].
726-
727722
### Document timelines ### {#document-timelines}
728723

729724
A <dfn export>document timeline</dfn> is a type of <a>timeline</a> that is <a
@@ -736,24 +731,16 @@ This fixed offset is referred to as the document timeline's <dfn>origin time</df
736731
Issue(2079): There must be a better term than "origin time"&mdash;
737732
it's too similar to "time origin".
738733

739-
740-
The [=timeline state|state=] of a <a>document timeline</a> at a given moment is
741-
the [=timeline state|state=] corresponding to the <em>first</em> matching
742-
condition from the following:
743-
744-
<div class="switch">
745-
746-
: If the associated document is not an [=active document=] or its
747-
[=time origin=] has not yet been established
748-
:: &rarr; [=timeline inactive state|inactive=]
749-
: Otherwise,
750-
:: &rarr; [=timeline active state|active=]
751-
752-
</div>
734+
Prior to establishing the [=time origin=] for its associated document,
735+
a [=document timeline=] is [=inactive timeline|inactive=].
753736

754737
After a [=document timeline=] becomes [=inactive timeline|active=], it is
755738
[=monotonically increasing=].
756739

740+
A [=document timeline=] that is associated with a {{Document}} which is not
741+
an [=active document=] is also considered to be
742+
[=inactive timeline|inactive=].
743+
757744
To <a lt="timeline time to origin-relative time">convert a timeline
758745
time, |timeline time|, to an origin-relative time</a> for a document timeline,
759746
|timeline|, return the sum of the |timeline time| and |timeline|'s [=origin
@@ -6365,6 +6352,8 @@ The following changes have been made since the <a
63656352
href="https://www.w3.org/TR/2021/WD-web-animations-1-20210518/">18 May
63666353
2021 Working Draft</a>:
63676354

6355+
- Removed the timeline phase concept and `AnimationTimeline.phase` member.
6356+
63686357
- Changed the procedure to [=play an animation=] to consistently check
63696358
the *auto-rewind flag* regardless of the [=effective playback rate=].
63706359
Previously the flag was not checked when the effective playback rate was

0 commit comments

Comments
 (0)