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
Copy file name to clipboardExpand all lines: css-view-transitions-2/Overview.bs
+6-6
Original file line number
Diff line number
Diff line change
@@ -577,7 +577,7 @@ When capturing the old or new state for an element, perform the following steps
577
577
</div>
578
578
<div algorithm>
579
579
To <dfn export>setup cross-document view-transition</dfn> given a {{Document}} |oldDocument|,
580
-
a {{Document}} |newDocument|, and |onReady|, which is an algorithm accepting nothing:
580
+
a {{Document}} |newDocument|, and |proceedWithNavigation|, which is an algorithm accepting nothing:
581
581
582
582
1. Let |resolvedRule| be the result of [=Resolve @view-transition rule|resolving the @view-transition rule=] for |oldDocument|.
583
583
@@ -602,7 +602,7 @@ When capturing the old or new state for an element, perform the following steps
602
602
603
603
Issue: should we check for the opt-in again, in case there was a CSSOM change in a requestAnimationFrame callback?
604
604
605
-
1. If |outboundTransition|'s [=ViewTransition/phase=] is "`done`", then call |onReady| and return.
605
+
1. If |outboundTransition|'s [=ViewTransition/phase=] is "`done`", then call |proceedWithNavigation| and return.
606
606
607
607
1. Assert: |outboundTransition|'s [=ViewTransition/phase=] is "`pending-capture`".
608
608
@@ -627,21 +627,21 @@ When capturing the old or new state for an element, perform the following steps
627
627
628
628
1. Set |inboundTransition|’s [=ViewTransition/phase=] to "`update-callback-called`".
629
629
630
-
1. Call |onReady|.
631
-
632
-
Note: The |inboundTransition| is activated after the dispatch of {{Window/pagereveal}} to ensure mutations made in this event apply to the captured new state.
633
-
634
630
1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an [=implementation-defined=] timeout.
635
631
To do so, the UA should [=queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=] to perform the following step:
636
632
If |transition|'s [=ViewTransition/phase=] is not "`done`", then [=skip the view transition=] |transition| with a "{{TimeoutError}}" {{DOMException}}.
637
633
634
+
Note: The |inboundTransition| is activated after the dispatch of {{Window/pagereveal}} to ensure mutations made in this event apply to the captured new state.
635
+
638
636
Note: |outboundTransition| is not exposed to JavaScript, it is used only for capturing
639
637
the state of the old document.
640
638
641
639
1. Set |oldDocument|'s [=active view transition=] to |outboundTransition|.
642
640
643
641
Note: The process continues in [=setup view transition=], via [=perform pending transition operations=].
644
642
643
+
1. Call |proceedWithNavigation|.
644
+
645
645
1. The user agent should display the currently displayed frame until either:
646
646
* The {{Window/pagereveal}} event is fired.
647
647
* its [=active view transition=]'s [=ViewTransition/phase=] is "`done`".
0 commit comments