Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions css-view-transitions-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,7 @@ Issue: Is this updated by a <code>rootEl.startViewTransition()</code> 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.
Expand Down Expand Up @@ -3133,13 +3134,17 @@ To <dfn>adjust nested view transition group transform</dfn> 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.

Expand Down