Skip to content
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

[css-view-transitions-2] Handle design changes between pages in MPA transitions #8679

Open
jakearchibald opened this issue Apr 4, 2023 · 0 comments
Labels
css-view-transitions-2 View Transitions; New feature requests

Comments

@jakearchibald
Copy link
Contributor

jakearchibald commented Apr 4, 2023

Unlike SPA, regular navigations may be from version 1 of a site, and version two. In some cases, version 1 and 2 may be incompatible in terms of view transitions - such as a major design change.

We should have some mechanism to handle this.

One way would be to have a version ident as part of the opt-in:

@cross-document-transition {
  state: allow;
  version: 123;
}

And if the versions don't match on either side, the transition doesn't happen (as if the 'new' state didn't opt-in).

If we go with the pattern above, we need to figure out what type the version should be, as a number seems a bit restrictive.

Although, is a version too blunt an instrument here? Developers may be in a situation where going from version-1 index to version-2 profile is fine, but going from version-1 index to version-2 article isn't fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-view-transitions-2 View Transitions; New feature requests
Projects
None yet
Development

No branches or pull requests

1 participant