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
[css-view-transitions-1] When skipping transitions, call the DOM-update callback from a task (#8827)
* When skipping transitions, call the DOM-update callback from a task
Amend assert to allow calling the callback from a "done" state
The "finished" promise is bound to the update callback promise, so
it doesn't need to change (the update callback is async anyway).
See [resolution](#7904 (comment)).
Closes#7904
* Add changelist entry
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
1502
1502
1503
-
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`", then [=call the update callback=] of |transition|.
1503
+
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`", then [=queue a global task=] on the [=DOM manipulation task source=],
1504
+
given |transition|'s [=relevant global object=], to [=call the update callback=] of |transition|.
1504
1505
1505
1506
1. Set [=document/transition suppressing rendering=] to false.
1506
1507
@@ -1808,6 +1809,7 @@ Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221
1808
1809
* Skip the transition if viewport size changes. See <a href="https://github.com/w3c/csswg-drafts/issues/8045">issue 8045</a>.
1809
1810
* Add support for :only-child. See <a href="https://github.com/w3c/csswg-drafts/issues/8057">issue 8057</a>.
1810
1811
* Add concept of a tree of pseudo-elements under [=pseudo-element root=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8113">issue 8113</a>.
1812
+
* When skipping a transition, the {{UpdateCallback}} is called in own task rather than synchronosly. See <a href="https://github.com/w3c/csswg-drafts/issues/7904">issue 7904</a>
1811
1813
1812
1814
<h3 id="changes-since-2022-10-25">
1813
1815
Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221025/">2022-10-25 Working Draft (FPWD)</a>
0 commit comments