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?