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
with [=this=]'s [=document element=] is its [=originating element=].
1143
1160
1144
1161
Note: The position of the [=ViewTransition/transition root pseudo-element=] within the [=document element=] does not matter, as the [=ViewTransition/transition root pseudo-element=]'s [=containing block=] is the [=snapshot containing block=].
1162
+
1163
+
: <dfn export>auto-skip view transitions</dfn>
1164
+
:: A boolean. Initially false.
1145
1165
</dl>
1146
1166
1147
1167
### Additions to Elements ### {#elements-concept}
@@ -1927,7 +1947,7 @@ Changes from <a href="https://www.w3.org/TR/2023/WD-css-view-transitions-1-20230
1927
1947
* The [=view transition tree=] is not exposed to accessibility tree. See <a href="https://github.com/w3c/csswg-drafts/issues/9365">issue 9365</a>.
1928
1948
* Animate back-drop filter similar to transform/size. See <a href="https://github.com/w3c/csswg-drafts/issues/9358">issue 9358</a>.
1929
1949
* Copy `color-scheme` from DOM element to ''::view-transition-group()''. See <a href="https://github.com/w3c/csswg-drafts/issues/9276">issue 9276</a>.
1930
-
1950
+
* Expose [=auto-skip view transition=] for a {{Document}}, to allow having outbound cross-document transitions preceed programmatic view transiitons. see <a href="https://github.com/w3c/csswg-drafts/issues/9512">issue 9512</a>.
1931
1951
<h3 id="changes-since-2022-05-25">
1932
1952
Changes from <a href="https://www.w3.org/TR/2023/WD-css-view-transitions-1-20230525/">2022-05-25 Working Draft</a>
Copy file name to clipboardExpand all lines: css-view-transitions-2/Overview.bs
+6
Original file line number
Diff line number
Diff line change
@@ -502,6 +502,10 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
502
502
Note: this means that any running transition would be skipped when the document is ready
503
503
to unload.
504
504
505
+
1. Set |document|'s [=auto-skip view transitions=] to true.
506
+
507
+
Note: this means that calling {{Document/startViewTransition()}} while capturing the old document for a cross-document view-transition would run the callback but skip the animation.
508
+
505
509
1. Let |outboundTransition| be a new {{ViewTransition}} object in |oldDocument|'s [=relevant Realm=],
506
510
whose [=ViewTransition/active types=] is |resolvedRule|, and whose [=ViewTransition/process old state captured=] is set to the following steps:
507
511
@@ -516,6 +520,8 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
516
520
Note: The ViewTransition object on the old Document should be destroyed after its state has been copied to the new Document below.
517
521
We explicitly clear it here since the old Document may be cached by the UA.
518
522
523
+
1. Set |document|'s [=auto-skip view transitions=] to false.
524
+
519
525
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=],
0 commit comments