-
Notifications
You must be signed in to change notification settings - Fork 759
[css-view-transitions-2] UA may apply implementation-defined timeout o cross-document view transition #9608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -517,17 +517,25 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule. | |
| We explicitly clear it here since the old Document may be cached by the UA. | ||
|
|
||
| 1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=], | ||
| to perform the following step: | ||
| to perform the following steps: | ||
|
|
||
| 1. Let |newDocument|'s [=active view transition=] be a new {{ViewTransition}} in |newDocument|'s [=relevant Realm=], | ||
| 1. Let |inboundTransition| be a new {{ViewTransition}} in |newDocument|'s [=relevant Realm=], | ||
| whose [=ViewTransition/named elements=] is |outboundTransition|'s [=ViewTransition/named elements=], | ||
| [=ViewTransition/initial snapshot containing block size=] is |outboundTransition|'s [=ViewTransition/initial snapshot containing block size=], | ||
| and whose [=ViewTransition/is inbound cross-document transition=] is true. | ||
|
|
||
| 1. [=Call the update callback=] for |newDocument|'s [=active view transition=]. | ||
| 1. Let |newDocument|'s [=active view transition=] be |inboundTransition|. | ||
|
|
||
| 1. [=Call the update callback=] for |inboundTransition|. | ||
|
|
||
| 1. Call |onReady|. | ||
|
|
||
| 1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an implementation-defined timeout, by running the following steps: | ||
|
||
|
|
||
| 1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return. | ||
|
|
||
| 1. [=Skip the view transition=] |transition| with a "{{TimeoutError}}" {{DOMException}}. | ||
|
|
||
| Note: |outboundTransition| is not exposed to JavaScript, it is used only for capturing | ||
| the state of the old document. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.