Skip to content

Commit 2efbcdc

Browse files
authored
[css-view-transitions-2] Resolve outbound transition promises after document unloads (#9954)
* [css-view-transitions-2] Resolve outbound transition promises after document unloads See [this resolution](#9888 (comment)) Closes #9888 * remove bespoke task
1 parent b93df3f commit 2efbcdc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Markup Shorthands: css yes, markdown yes
2020
spec:css-view-transitions-1;
2121
text: active view transition; type: dfn;
2222
text: capture the old state; type: dfn;
23-
text: clear view transition; type: dfn;
2423
text: activate view transition; type: dfn;
2524
text: skip the view transition; type: dfn;
2625
text: ViewTransition; type: interface;
@@ -582,11 +581,6 @@ Prepend this to the [=Perform pending transition operations=] algorithm given a
582581
[=view transition params/named elements=] is a [=map/clone=] of |transition|'s [=ViewTransition/named elements=],
583582
and whose [=view transition params/initial snapshot containing block size=] is |transition|'s [=ViewTransition/initial snapshot containing block size=].
584583

585-
1. [=Clear view transition=] |transition|.
586-
587-
Note: The ViewTransition object on the old Document should be destroyed after its state has been copied to the new Document below.
588-
We explicitly clear it here since the old Document may be cached by the UA.
589-
590584
1. Call |transition|'s [=outbound post-capture steps=] given |viewTransitionParams|.
591585

592586

@@ -678,6 +672,8 @@ Prepend this to the [=Perform pending transition operations=] algorithm given a
678672
1. Let |outboundTransition| be a new {{ViewTransition}} object in |oldDocument|'s [=relevant Realm=],
679673
whose [=ViewTransition/active types=] is |resolvedRule|.
680674

675+
Note: the {{ViewTransition}} is skipped once the old document is hidden.
676+
681677
1. Set |outboundTransition|'s [=outbound post-capture steps=] to the following steps given a [=view transition params=]-or-null |params|:
682678
1. Set |newDocument|'s [=inbound view transition params=] to |params|.
683679

0 commit comments

Comments
 (0)