Detect UA transitions on same-origin cross-document navigations #10831
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
In short:
Same as #8782 but then for same-origin cross-document navigations.
A bit longer:
Both Safari iOS and Safari Desktop (and soon Chrome on Android) have a feature where you see a 'preview' of the previous history entry when you drag from the edge (iOS) or two-finger swipe (Desktop). When doing so, the UA runs its own transition form one page to another.
When authors have added View Transitions to their website, this will result in two transitions running in sequence: one provided by the UA and one code by the author.
If authors had a way to detect whether the UA was running it’s own transition, then they can use that to skip their own transition.
What solutions exist today?
None.
(One could rebuild their webapp to use the Navigation API, but I don’t consider that a low-effort solution)
How would you solve it?
Add a
hasUAVisualTransition
property toNavigationActivation
. This would allow developers to skip their own transition from within PageSwap/PageReveal.Anything else?
The
hasUAVisualTransition
property is already a thing, which was introduce to solve this very same problem for same-document navigations – see #8782Not covered by the proposed solution are cross-origin cross-document navigations. I don’t think that’s a problem because you can’t run View Transitions for such navigations.
The text was updated successfully, but these errors were encountered: