Skip to content

[web-animations-1] Does an animation have pending events? #8004

@jakearchibald

Description

@jakearchibald

In the view transitions spec we want to know when all animations targeting particular elements are finished/idle. However, we want to wait long enough so an additional animation can be changed in the "finish" event or .finished promise reaction callback.

We currently have prose like:

If |document|'s [=pending animation event queue=] has any events associated with |animation|.

But that seems a bit hand-wavy, since the queue isn't really defined. It stores event objects, but also kinda animations too?

I'm not sure what the right way forward here is. Maybe the animation spec could include a "has pending events" definition and export that?

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