Skip to content

Commit f11ec09

Browse files
committed
Tighten timeout a bit more
1 parent d437792 commit f11ec09

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
@@ -995,14 +995,16 @@ The [=captured element=] struct should contain these fields, in addition to the
995995

996996
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.
997997

998-
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:
998+
1. To skip the transition after a timeout, the user agent may perform the following steps [=in parallel=]:
999999

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

1002-
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`",
1003-
then [=skip the view transition|skip=] |newDocument|'s [=active view transition=] with a "{{TimeoutError}}" {{DOMException}}.
1002+
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=] to perform the following steps:
10041003

1005-
Note: This allows user agents to
1004+
1. If |newDocument|'s [=inbound view transition params=] is |params|, then set |newDocument|'s [=inbound view transition params=] to null.
1005+
1006+
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`",
1007+
then [=skip the view transition|skip=] |newDocument|'s [=active view transition=] with a "{{TimeoutError}}" {{DOMException}}.
10061008

10071009
1. Call |proceedWithNavigation|.
10081010

0 commit comments

Comments
 (0)