Skip to content

Commit 288762f

Browse files
committed
Only skip if animation hasn't started
1 parent f11ec09 commit 288762f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,6 @@ It has the following [=struct/items=]:
875875

876876
: <dfn>initial snapshot containing block size</dfn>
877877
:: a [=tuple=] of two numbers (width and height).
878-
879-
: <dfn>resolved transition</dfn>
880-
:: a {{ViewTransition}} or null, initially null.
881878
</dl>
882879

883880
## Additions to the view transition page-visibility change steps ## {#page-visibility-change-steps-additions}
@@ -999,13 +996,10 @@ The [=captured element=] struct should contain these fields, in addition to the
999996

1000997
1. Wait for an [=implementation-defined=] [=duration=].
1001998

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

10041001
1. If |newDocument|'s [=inbound view transition params=] is |params|, then set |newDocument|'s [=inbound view transition params=] to null.
10051002

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}}.
1008-
10091003
1. Call |proceedWithNavigation|.
10101004

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

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

1104-
1. Set |inboundViewTransitionParams|'s [=view transition params/resolved transition=] to |transition|.
1105-
1106-
Note: this allows skipping the transition after an [=implementation-defined=] timeout.
11071098

11081099
1. Return |transition|.
11091100
</div>

0 commit comments

Comments
 (0)