Skip to content

Commit e34c1ca

Browse files
committed
Update
1 parent 573982b commit e34c1ca

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ The {{ViewTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=Vi
743743

744744
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
745745

746-
1. If it is not null, [=Call the DOM update callback=] of |transition|. Otherwise, treat |transition|'s [=ViewTransition/DOM updated promise] in subsequent steps as resolved.
746+
1. [=Call the DOM update callback=] of |transition|.
747747

748748
1. [=promise/React=] to |transition|'s [=ViewTransition/DOM updated promise=]:
749749

@@ -830,7 +830,7 @@ The {{ViewTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=Vi
830830

831831
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
832832

833-
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition| if it is not null.
833+
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition|.
834834

835835
1. Set [=document/transition suppressing rendering=] to false.
836836

@@ -1117,13 +1117,17 @@ The {{ViewTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=Vi
11171117

11181118
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`".
11191119

1120-
1. Let |callbackPromise| be the result of [=/invoking=] |transition|'s [=ViewTransition/DOM update callback=].
1120+
1. Consider |transition|'s [=ViewTransition/DOM update callback=]:
1121+
1122+
* If it is null, then resolve |callbackPromise|.
1123+
1124+
* Otherwise, let |callbackPromise| be the result of [=/invoking=] |transition|'s [=ViewTransition/DOM update callback=].
11211125

11221126
1. Set |transition|'s [=ViewTransition/phase=] to "`dom-update-callback-called`".
11231127

11241128
1. [=promise/React=] to |callbackPromise|:
11251129

1126-
* If |callbackPromise| was fulfilled, then [=resolve=] |transition|'s [=ViewTransition/DOM updated promise=].
1130+
* If |callbackPromise| was resolved, then [=resolve=] |transition|'s [=ViewTransition/DOM updated promise=].
11271131

11281132
* If |callbackPromise| was rejected with reason |r|, then [=reject=] |transition|'s [=ViewTransition/DOM updated promise=] with |r|.
11291133

0 commit comments

Comments
 (0)