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] MPA and SPA API compatibility #8677

Open
jakearchibald opened this issue Apr 4, 2023 · 0 comments
Open

[css-view-transitions-2] MPA and SPA API compatibility #8677

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

Comments

@jakearchibald
Copy link
Contributor

jakearchibald commented Apr 4, 2023

I don't think there's anything to discuss here (please correct me if I'm wrong @astearns), so this is more a note to put something about this strategy in the spec, and remind ourselves of it as we develop the MPA API.

I think @zcorpan said it best:

we think it's important that the solution works well for MPAs and that it's consistent with the solution for SPAs. As such, if design changes are needed for the MPA use case that also affect SPA API, the latter should be updated as appropriate even though it has shipped

A concrete example: When I create offline-first web apps, I might use SPA for most navigations, but if I know there's a service worker update waiting, I might fall back to an MPA navigation, to pick up that update with minimal disruption to the user. It would be nice if the view transitions I define work seamlessly in both cases.

In practice, that means if we add high-level features for the MPA case, we should find a way to add them back into the SPA case, with as little extra work for the developer as possible.

We should be strict about this for full-document transitions (the type defined by css-view-transitions-1), although some may not make sense for future-features like scoped transitions.

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 Needs Edits
Projects
None yet
Development

No branches or pull requests

1 participant