diff --git a/css-view-transitions-2/Overview.bs b/css-view-transitions-2/Overview.bs index c0fe3bca1c1..2cf2f8b3180 100644 --- a/css-view-transitions-2/Overview.bs +++ b/css-view-transitions-2/Overview.bs @@ -1788,6 +1788,7 @@ Issue: Is this updated by a rootEl.startViewTransition() call, too? 1. "`pending-capture`". 1. "`update-callback-called`". 1. "`animating`". + 1. "`pending-done`". 1. "`done`". Note: For the most part, a developer using this API does not need to worry about the different phases, since they progress automatically. @@ -3133,13 +3134,17 @@ To adjust nested view transition group transform given a |transform| - |document|'s [=pending animation event queue=] has any events associated with |animation|. - 1. If |hasActiveAnimations| is false: + 1. If |hasActiveAnimations| is false and transition|'s [=ViewTransition/phase=] to "`animating`", - 1. Set |transition|'s [=ViewTransition/phase=] to "`done`". + 1. Set |transition|'s [=ViewTransition/phase=] to "`pending-done`". - 1. [=Clear view transition=] |transition|. + 1. [=Queue a global task=] on the [=DOM manipulation task source=], + given |transition|'s [=relevant global object=], + to perform the following step: + If |transition|'s [=ViewTransition/phase=] is "`pending-done`", then: + 1. [=Resolve=] |transition|'s [=ViewTransition/finished promise=]. - 1. [=Resolve=] |transition|'s [=ViewTransition/finished promise=]. + 1. [=Clear view transition|clear=] |transition|. 1. Return.