[csswg-drafts] [web-animations-1] Does an animation have pending events? (#8004)

jakearchibald has just created a new issue for https://github.com/w3c/csswg-drafts:

== [web-animations-1] Does an animation have pending events? ==
In the [view transitions spec](https://drafts.csswg.org/css-view-transitions-1/) 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?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8004 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 November 2022 15:29:33 UTC