Skip to content

Commit eaf7fdd

Browse files
authored
[css-view-transitions-2] UA may apply implementation-defined timeout o cross-document view transition (#9608)
* [css-view-transitions-2] UA may apply implementation-defined timeout to cross-document view transition Closes #9155 * Reword timeout
1 parent 9ac9b46 commit eaf7fdd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,17 +517,23 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
517517
We explicitly clear it here since the old Document may be cached by the UA.
518518

519519
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=],
520-
to perform the following step:
520+
to perform the following steps:
521521

522-
1. Let |newDocument|'s [=active view transition=] be a new {{ViewTransition}} in |newDocument|'s [=relevant Realm=],
522+
1. Let |inboundTransition| be a new {{ViewTransition}} in |newDocument|'s [=relevant Realm=],
523523
whose [=ViewTransition/named elements=] is |outboundTransition|'s [=ViewTransition/named elements=],
524524
[=ViewTransition/initial snapshot containing block size=] is |outboundTransition|'s [=ViewTransition/initial snapshot containing block size=],
525525
and whose [=ViewTransition/is inbound cross-document transition=] is true.
526526

527-
1. [=Call the update callback=] for |newDocument|'s [=active view transition=].
527+
1. Let |newDocument|'s [=active view transition=] be |inboundTransition|.
528+
529+
1. [=Call the update callback=] for |inboundTransition|.
528530

529531
1. Call |onReady|.
530532

533+
1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an [=implementation-defined=] timeout.
534+
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:
535+
If |transition|'s [=ViewTransition/phase=] is not "`done`", then [=skip the view transition=] |transition| with a "{{TimeoutError}}" {{DOMException}}.
536+
531537
Note: |outboundTransition| is not exposed to JavaScript, it is used only for capturing
532538
the state of the old document.
533539

0 commit comments

Comments
 (0)