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=].
1159
1159
1160
1160
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=].
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
1255
1258
1259
+
1. [=Flush the update callback queue=].
1260
+
1261
+
Note: this ensures that any changes to the DOM scheduled by other skipped transitions are done before the old state for this transition is captured.
1262
+
1256
1263
1. [=Capture the old state=] for |transition|.
1257
1264
1258
1265
If failure is returned, then [=skip the view transition=] for |transition| with an "{{InvalidStateError}}" {{DOMException}} in |transition|'s [=relevant Realm=],
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
1660
1683
1661
-
1. If |transition|'s [=ViewTransition/phase=] is before "`update-callback-called`", then [=queue a global task=] on the [=DOM manipulation task source=],
1662
-
given |transition|'s [=relevant global object=], to [=call the update callback=]of |transition|.
1684
+
1. If |transition|'s [=ViewTransition/phase=] is before "`update-callback-called`",
1685
+
then [=schedule the update callback=]for |transition|.
1663
1686
1664
1687
1. Set [=document/rendering suppression for view transitions=] to false.
1665
1688
@@ -1994,6 +2017,7 @@ Changes from <a href="https://www.w3.org/TR/2023/WD-css-view-transitions-1-20230
1994
2017
* Fix scoping to match name instead of element. See <a href="https://github.com/w3c/csswg-drafts/issues/10145">issue 10145</a>.
1995
2018
* Add a rendering characteristics note about out-of-viewport elements. See <a href="https://github.com/w3c/csswg-drafts/issues/8282">issue 8282</a>.
1996
2019
* Swap the order of invoking the update callback and setting the phase. See <a href="https://github.com/w3c/csswg-drafts/issues/10822">issue 10822</a>.
2020
+
* Always flush the queue of update callbacks before capturing the old state. See <a href="https://github.com/w3c/csswg-drafts/issues/11292">issue 11922</a>.
1997
2021
1998
2022
<h3 id="changes-since-2022-05-25">
1999
2023
Changes from <a href="https://www.w3.org/TR/2023/WD-css-view-transitions-1-20230525/">2022-05-25 Working Draft</a>
0 commit comments