-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling UA transitions for same-document navigations #177
Comments
Discussing this with colleagues it seems that given we support #48 we should also be supporting this, i.e., "position: support". Please say something within a week if you disagree! |
@annevk apologies for not updating this issue. We're not pursuing an API which lets developers disable browser UX based on your feedback at the HTML WG discussion, TAG and discussing a related issue in the context of cross-document transitions at CSSWG here. The summary for recommendation to browsers/developers is:
If the above sounds good to you, feel free to close this issue. |
I guess it's not clear to me how the browser would know for a same-document navigation that there's a developer-provided transition? I thought this was a proposal to disable that such that you can provide your own transition using view transitions. |
Yes, the goal of this proposal was to disable the UA transition such that the author can provide their own transition. It doesn't have to be a view transition, for same-document navigations the transition could be written using any framework or other web APIs directly. We explored 2 API contracts:
But the cases where we (Chrome) is planning to add UA transitions are limited and would currently always prefer the UA transition (see below). IIUC Safari has the same stance but correct me if I misunderstood. So we've decided to only implement #2 for now, #1 won't change the browser decision. If we consider adding UA transitions for more cases (like link clicks) then we can revisit the API proposed in #1. For cases where a UA transition would always be preferred. Safari right now does a transition as the user swipes so they can peek at the previous/next navigation entry before doing the navigation. If we let authors disable that then the UX would be:
That seems worse than the browser doing an animation which progresses with the user gesture. The long term thinking is to provide an API for the site to observe the gesture and make it easy to write a custom transition (with a new animation timeline + View Transition). When such an API exists, the author can tell the browser about their custom transition as a part of observing the gesture. |
WebKittens
@smfr
Title of the spec
Disabling UA transitions for same-document navigations
URL to the spec
w3c/csswg-drafts#8747
URL to the spec's repository
No response
Issue Tracker URL
No response
Explainer URL
https://github.com/WICG/view-transitions/blob/main/default-ua-transitions.md
TAG Design Review URL
w3ctag/design-reviews#835
Mozilla standards-positions issue URL
mozilla/standards-positions#784
WebKit Bugzilla URL
No response
Radar URL
No response
Description
If an author chooses to disable UA transitions for a subset of navigations, they will need to use the API proposed at #176 to detect whether a UA transition was executed for a navigation.
The text was updated successfully, but these errors were encountered: