You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-view-transitions-2/Overview.bs
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -299,7 +299,13 @@ Note: as per default behavior, the ''@view-transition'' rule can be nested insid
299
299
300
300
: <dfn>auto</dfn>
301
301
:: The transition will be enabled if the navigation is same-origin, without cross-origin
302
-
redirects, and is not a {{NavigationType/reload}}.
302
+
redirects, and whoes {{NavigationType}} is
303
+
* {{NavigationType/traverse}} or
304
+
* {{NavigationType/push}} or {{NavigationType/replace}} with <a href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#user-navigation-involvement">user navigation involvement</a> not equal to `"browser UI"`.
305
+
306
+
Note: Navigations excluded from ''@view-transition/navigation/auto'' are for example, navigating
307
+
via the URL address bar or clicking a bookmark, as well as any form of user or script initiated {{NavigationType/reload}}.
308
+
303
309
</dl>
304
310
305
311
## The [=@view-transition/type=] descriptor ## {#view-transition-type-descriptor}
@@ -389,12 +395,15 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
389
395
## Monkey patches to HTML ## {#monkey-patch-to-html}
390
396
391
397
<div algorithm="monkey patch to apply the history step">
392
-
Prepend a step at the beginning of the task [=queue a global task|queued=] on |navigable|'s [=active window=]
398
+
Prepend these steps at the beginning of the task [=queue a global task|queued=] on |navigable|'s [=active window=]
393
399
when <a href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#apply-the-history-step">applying the history step</a> (14.11.1, <a href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#updating-the-traversable:queue-a-global-task-3">here</a>):
394
400
395
-
This monkey-patch step assumes a boolean |changingNavigationContinuation|, a [=/navigable=] |navigable|, a {{Document}} |oldDocument|, a {{Document}} |newDocument|, and a {{NavigationType}} |navigationType|.
401
+
This monkey-patch step assumes a boolean |changingNavigationContinuation|, a [=/navigable=] |navigable|, a {{Document}} |oldDocument|, a {{Document}} |newDocument|, a {{NavigationType}} |navigationType|,
402
+
and a <a href="https://html.spec.whatwg.org/multipage/browsing-the-web.html#user-navigation-involvement">user navigation involvement</a> |userInvolvementForNavigateEvents|.
396
403
397
-
If |changingNavigationContinuation| update-only is false, then [=setup cross-document view-transition=] given |oldDocument|, |newDocument|, |navigationType|, and the remaining steps and return from these steps.
404
+
1. Let |isBrowserUINavigation| be true if |userInvolvementForNavigateEvents| is `"browser UI"`, otherwise false.
405
+
406
+
1. If |changingNavigationContinuation| update-only is false, then [=setup cross-document view-transition=] given |oldDocument|, |newDocument|, |navigationType|, |isBrowserUINavigation|, and the remaining steps and return from these steps.
398
407
399
408
Note: This would wait until a transition is captured or skipped before proceeding to unloading the old document and activating the new one.
400
409
</div>
@@ -426,13 +435,15 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
426
435
427
436
<div algorithm>
428
437
To <dfn export>setup cross-document view-transition</dfn> given a {{Document}} |oldDocument|,
429
-
a {{Document}} |newDocument|, a {{NavigationType}} |navigationType|, and |onReady|, which is an algorithm accepting nothing:
438
+
a {{Document}} |newDocument|, a {{NavigationType}} |navigationType|, a boolean |isBrowserUINavigation|, and |onReady|, which is an algorithm accepting nothing:
430
439
431
440
1. If the user agent decides to display an [=implementation-defined=] navigation experience, e.g. a gesture-based transition for a back navigation,
432
441
the user agent may ignore the author-defined view transition. If that is the case, return.
433
442
434
443
1. If |navigationType| is {{NavigationType/reload}}, then return.
435
444
445
+
1. If |isBrowserUINavigation| is true, and |navigationType| is {{NavigationType/push}} or {{NavigationType/replace}}, then return.
446
+
436
447
1. If |oldDocument|'s [=environment settings object/origin=] is not [=same origin=] as
437
448
|newDocument|'s [=environment settings object/origin=] then call |onReady| and return.
0 commit comments