diff --git a/css-view-transitions-1/Overview.bs b/css-view-transitions-1/Overview.bs index 7f584f5a570..a0ced1a4cfc 100644 --- a/css-view-transitions-1/Overview.bs +++ b/css-view-transitions-1/Overview.bs @@ -1256,10 +1256,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface; 1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=]. - 1. [=Flush the update callback queue=]. - - 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. - 1. [=Capture the old state=] for |transition|. If failure is returned, then [=skip the view transition=] for |transition| with an "{{InvalidStateError}}" {{DOMException}} in |transition|'s [=relevant Realm=], @@ -1663,15 +1659,19 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface; 1. [=list/Append=] |transition| to |transition|'s [=relevant settings object=]'s [=update callback queue=]. 1. [=Queue a global task=] on the [=DOM manipulation task source=], given |transition|'s [=relevant global object=], to [=flush the update callback queue=]. -
- To flush the update callback queue given a {{Document}} |document|: + To flush the update callback queue given a {{Document}} |document|: 1. [=list/For each=] |transition| in |document|'s [=update callback queue=], [=call the update callback=] given |transition|. 1. Set |document|'s [=update callback queue=] to an empty list.
+ Note: a scheduled update callback is guaranteed to be called before the next rendering steps, regardless of whether the + transition has succeeded or not. This is guaranteed by [=flush the update callback queue|flushing=] the queue in one of two situations: + the beginning of the rendering loop, or in a task that runs while [=document/rendering suppression for view transitions|rendering is supressed=]. + + ## [=Skip the view transition=] ## {#skip-the-view-transition-algorithm}