Skip to content

Commit c6b1b11

Browse files
authored
[css-view-transition-2] Clarify timeout behavior for inbound view transition (#10817)
1 parent 5ebf7df commit c6b1b11

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,14 @@ The [=captured element=] struct should contain these fields, in addition to the
992992

993993
Note: The inbound transition is activated after the dispatch of {{Window/pagereveal}} to ensure mutations made in this event apply to the captured new state.
994994

995+
1. To skip the transition after a timeout, the user agent may perform the following steps [=in parallel=]:
996+
997+
1. Wait for an [=implementation-defined=] [=duration=].
998+
999+
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=] to perform the following step:
1000+
1001+
1. If |newDocument|'s [=inbound view transition params=] is |params|, then set |newDocument|'s [=inbound view transition params=] to null.
1002+
9951003
1. Call |proceedWithNavigation|.
9961004

9971005
1. Set |oldDocument|'s [=active view transition=] to |outboundTransition|.
@@ -1087,9 +1095,6 @@ Prepend the following step to the [=Perform pending transition operations=] algo
10871095

10881096
1. Set |transition|'s [=ViewTransition/active types=] to |resolvedRule|.
10891097

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

10941099
1. Return |transition|.
10951100
</div>

0 commit comments

Comments
 (0)