Skip to content

Commit 5c5633f

Browse files
committed
Move onReady to the correct place and rename
See w3c#9886 (comment)
1 parent e48ebbd commit 5c5633f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-view-transitions-2/Overview.bs

+6-6
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ When capturing the old or new state for an element, perform the following steps
577577
</div>
578578
<div algorithm>
579579
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:
581581

582582
1. Let |resolvedRule| be the result of [=Resolve @view-transition rule|resolving the @view-transition rule=] for |oldDocument|.
583583

@@ -602,7 +602,7 @@ When capturing the old or new state for an element, perform the following steps
602602

603603
Issue: should we check for the opt-in again, in case there was a CSSOM change in a requestAnimationFrame callback?
604604

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.
606606

607607
1. Assert: |outboundTransition|'s [=ViewTransition/phase=] is "`pending-capture`".
608608

@@ -627,21 +627,21 @@ When capturing the old or new state for an element, perform the following steps
627627

628628
1. Set |inboundTransition|’s [=ViewTransition/phase=] to "`update-callback-called`".
629629

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-
634630
1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an [=implementation-defined=] timeout.
635631
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:
636632
If |transition|'s [=ViewTransition/phase=] is not "`done`", then [=skip the view transition=] |transition| with a "{{TimeoutError}}" {{DOMException}}.
637633

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+
638636
Note: |outboundTransition| is not exposed to JavaScript, it is used only for capturing
639637
the state of the old document.
640638

641639
1. Set |oldDocument|'s [=active view transition=] to |outboundTransition|.
642640

643641
Note: The process continues in [=setup view transition=], via [=perform pending transition operations=].
644642

643+
1. Call |proceedWithNavigation|.
644+
645645
1. The user agent should display the currently displayed frame until either:
646646
* The {{Window/pagereveal}} event is fired.
647647
* its [=active view transition=]'s [=ViewTransition/phase=] is "`done`".

0 commit comments

Comments
 (0)