Skip to content

Commit e62445c

Browse files
authored
[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
1 parent bdebe3e commit e62445c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,13 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
490490

491491
1. Set |newDocument|'s [=active view transition=] to |inboundTransition|.
492492

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`".
494496

495497
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.
496500

497501
1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an [=implementation-defined=] timeout.
498502
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

Comments
 (0)