Skip to content
Open
Changes from 1 commit
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
Next Next commit
[css-view-transitions-2] Resolve finished promise at own task when an…
…imations are done

Closes #12442
  • Loading branch information
noamr committed Oct 16, 2025
commit 02fbadb6c946f8a215eb926ad5eff5a1a3303b6e
12 changes: 8 additions & 4 deletions css-view-transitions-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3133,13 +3133,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