Skip to content

Commit b71b354

Browse files
authored
Merge pull request w3c#7903 from vmpstr/reject-ready
[css-view-transitions-1] Make the ready promise rejection conditional, since it may have already been resolved.
2 parents 9282f40 + 321a96e commit b71b354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,8 @@ The {{ViewTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=Vi
850850

851851
1. Set |document|'s [=document/active DOM transition=] to null.
852852

853-
1. [=Reject=] |transition|'s [=ViewTransition/ready promise=] with |reason|.
853+
1. If |transition|'s [=ViewTransition/ready promise=] has not yet been resolved, [=reject=] it with |reason|.
854+
Note: The ready promise would've been resolved if skipTransition() is called after we start animating.
854855

855856
1. [=Reject=] |transition|'s [=ViewTransition/finished promise=] with |reason|.
856857
</div>

0 commit comments

Comments
 (0)