Description
This is more like a question because I don't have a testcase for this.
Per the recent update of the spec in 7.3. Setup view transition:
To setup view transition for a ViewTransition transition, perform the following steps:
- Let document be transition’s relevant global object’s associated document.
- Flush the update callback queue.
- Capture the old state for transition.
The step 2, "flush the update callback queue" runs the scripts, so I'm thinking is it possible that script skips the current view transition we are setting up? It's impossible to call skipTransition()
API in the previous update callbacks to skip the new view transition, so all I can think of is to change the visibility of the document. However, the change of visibility of the document queues a DOM task so it may happen after we setup the current view transition. However, I'm not sure if there are any other ways to skip the view transitions. (But it sounds like possible?)
So is it possible that someone skips the current view transition in previous update callbacks when we setup the current view transition? If it is possible, what is the expected behavior here?