Skip to content

[web-animations-1] Should updating the timing of an effect update the finished state of its animation? #11490

Closed
@cdoublev

Description

@cdoublev

§ Updating the finished state includes this non-normative example:

var animation = elem.animate({ left: '100px' }, 2000);
animation.playbackRate = 2;
animation.currentTime = 1000; // animation is now finished
animation.effect.updateTiming({ iterations: 2 }); // animation is no longer finished

It seems that effect.updateTiming() synchronously changes the finished state of its associated animation, which seems unspecified in its own procedure and in § Updating the finished state:

The crossing of this boundary is checked on each modification to the animation object [and also] as part of the update animations and send events procedure. [...]

Perhaps it could be explicitly noted/specified? Unless I am missing something. I cannot find anything else related in the spec, whereas the association between a timeline and animations, and between an animation and effect, seems to be more explicitly defined.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions