[csswg-drafts] [css-view-transitions-2] Starting a cross-document view-transition instantly (#12829)

noamr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-2] Starting a cross-document view-transition instantly ==
See https://github.com/whatwg/html/issues/10616 and [explainer](https://github.com/w3c/csswg-drafts/blob/main/css-view-transitions-2/two-phase-transition-explainer.md).

Currently a cross-document view-transition has to wait twice:
- Wait until the navigation is committed before snapshotting the old state
- Wait until the new document is ready to present a frame before activating the view transition

These delays, in cases where the navigation is not instant, can create a jarring experience.

The explainer proposes a few possible solutions, that should be validated by prototyping:
- Heuristically letting some same-document transitions carry on till the end, deferring the navigation commit.
- Potentially, add an explicit flag to make a transition behave that way (e.g. in the `startViewTransition` options)
- Using [route matching](https://github.com/WICG/declarative-partial-updates/blob/main/route-matching-explainer.md) to declaratively set up the intermediate view-transition.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12829 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 18 September 2025 11:59:47 UTC