You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Set |transition|'s [=ViewTransition/phase=] to "`done`".
1460
1477
1461
-
1. If |transition|'s [=ViewTransition/ready promise=] has not yet been resolved, [=reject=] it with |reason|.
1478
+
1. [=Reject=] |transition|'s [=ViewTransition/ready promise=] with |reason|.
1462
1479
1463
-
Note: The ready promise would've been resolved if {{ViewTransition/skipTransition()}} is called after we start animating.
1480
+
Note: The [=ViewTransition/ready promise=] may already be resolved at this point,
1481
+
if {{ViewTransition/skipTransition()}} is called after we start animating.
1482
+
In that case, this step is a no-op.
1464
1483
1465
-
1. [=promise/React=] to |transition|'s [=ViewTransition/update callback done promise=]:
1484
+
1. [=Resolve=] |transition|'s [=ViewTransition/finished promise=] with the result of [=reacting=] to |transition|'s [=ViewTransition/update callback done promise=]:
1466
1485
1467
-
* If |transition|'s [=ViewTransition/update callback done promise=] was resolved,
1468
-
then [=resolve=] |transition|'s [=ViewTransition/finished promise=].
1486
+
- If the promise was fulfilled, then return undefined.
1469
1487
1470
-
* If |transition|'s [=ViewTransition/update callback done promise=] was rejected with reason |reason|,
1471
-
then [=reject=] |transition|'s [=ViewTransition/finished promise=] with |reason|.
1488
+
Note: Since the rejection of |transition|'s [=ViewTransition/update callback done promise=] isn't explicitly handled here,
1489
+
if |transition|'s [=ViewTransition/update callback done promise=] rejects,
1490
+
then |transition|'s [=ViewTransition/finished promise=] will reject with the same reason.
1472
1491
</div>
1473
1492
1474
1493
## [=Capture the image=] ## {#capture-the-image-algorithm}
0 commit comments