Skip to content

Commit 3e18d12

Browse files
committed
Tighten timeout a bit more
1 parent 65fdb88 commit 3e18d12

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -984,14 +984,16 @@ The [=captured element=] struct should contain these fields, in addition to the
984984

985985
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.
986986

987-
1.At any given time, the UA may decide to skip the inbound transition, e.g. after an [=implementation-defined=] timeout. 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 steps:
987+
1. To skip the transition after a timeout, the user agent may perform the following steps [=in parallel=]:
988988

989-
1. If |newDocument|'s [=inbound view transition params=] is |params|, then set |newDocument|'s [=inbound view transition params=] to null.
989+
1. Wait for an [=implementation-defined=] [=duration=].
990990

991-
1. If |newDocument|'s [=active view transition=] is |params|'s [=view transition params/resolved transition=], and |newDocument|'s [=active view transition=]'s [=ViewTransition/phase=] is not "`done`",
992-
then [=skip the view transition|skip=] |newDocument|'s [=active view transition=] with a "{{TimeoutError}}" {{DOMException}}.
991+
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=] to perform the following steps:
993992

994-
Note: This allows user agents to
993+
1. If |newDocument|'s [=inbound view transition params=] is |params|, then set |newDocument|'s [=inbound view transition params=] to null.
994+
995+
1. If |newDocument|'s [=active view transition=] is |params|'s [=view transition params/resolved transition=], and |newDocument|'s [=active view transition=]'s [=ViewTransition/phase=] is not "`done`",
996+
then [=skip the view transition|skip=] |newDocument|'s [=active view transition=] with a "{{TimeoutError}}" {{DOMException}}.
995997

996998
1. Call |proceedWithNavigation|.
997999

0 commit comments

Comments
 (0)