diff --git a/css-view-transitions-1/Overview.bs b/css-view-transitions-1/Overview.bs index 50c2faf61f2..73235024cd3 100644 --- a/css-view-transitions-1/Overview.bs +++ b/css-view-transitions-1/Overview.bs @@ -1468,7 +1468,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface; even if the transition is [=Skip the view transition|skipped=]. The reasons for this are discussed in [[#transitions-as-enhancements]]. - 1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`". + 1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is "`done`", or [=phases/before=] "`update-callback-called`". 1. Let |callbackPromise| be null. @@ -1478,7 +1478,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface; 1. Otherwise, set |callbackPromise| to the result of [=/invoking=] |transition|'s [=ViewTransition/update callback=]. - 1. Set |transition|'s [=ViewTransition/phase=] to "`update-callback-called`". + 1. If |transition|'s [=ViewTransition/phase=] is not "`done`", then set |transition|'s [=ViewTransition/phase=] to "`update-callback-called`". 1. [=Resolve=] |transition|'s [=ViewTransition/update callback done promise=] with the result of [=reacting=] to |callbackPromise|: @@ -1500,7 +1500,8 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface; 1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`". - 1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`", then [=call the update callback=] of |transition|. + 1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`", then [=queue a global task=] on the [=DOM manipulation task source=], + given |transition|'s [=relevant global object=], to [=call the update callback=] of |transition|. 1. Set [=document/transition suppressing rendering=] to false. @@ -1808,6 +1809,7 @@ Changes from issue 8045. * Add support for :only-child. See issue 8057. * Add concept of a tree of pseudo-elements under [=pseudo-element root=]. See issue 8113. +* When skipping a transition, the {{UpdateCallback}} is called in own task rather than synchronosly. See issue 7904