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
[css-view-transitions-2] Dont call the update callback on VT for new the Document (#9848)
* Don't call the update callback for inbound transitions
This erroneously activates the transition before pagereveal dispatch.
* Indentation
* Link resolve
Copy file name to clipboardExpand all lines: css-view-transitions-2/Overview.bs
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -490,9 +490,13 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
490
490
491
491
1. Set |newDocument|'s [=active view transition=] to |inboundTransition|.
492
492
493
-
1. [=Call the update callback=] for |inboundTransition|.
493
+
1. [=Resolve=] |inboundTransition|’s [=ViewTransition/update callback done promise=] with undefined.
494
+
495
+
1. Set |inboundTransition|’s [=ViewTransition/phase=] to "`update-callback-called`".
494
496
495
497
1. Call |onReady|.
498
+
499
+
Note: The |inboundTransition| is activated after the dispatch of {{Window/pagereveal}} to ensure mutations made in this event apply to the captured new state.
496
500
497
501
1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an [=implementation-defined=] timeout.
498
502
To do so, the UA should [=queue a global task=] on the [=DOM manipulation task source=] given |document|'s [=relevant global object=] to perform the following step:
0 commit comments