-
Notifications
You must be signed in to change notification settings - Fork 711
[css-view-transitions-1] Handling snapshot viewport sizes changes during transitions #8045
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
Comments
My vote is for skipping the transition:
So not worth the complexity IMO. We can collect metrics to see how often we get these resizes midway through a transition and do something better if its worthwhile. |
Since this is merely limiting the scope of the first iteration of this feature we likely do not need to spend meeting time on it. The CSSWG will automatically accept this resolution one week from now if no objections are raised here. Anyone can add an emoji to this comment to express support. If you do not support this resolution, please add a new comment. Proposed Resolution: For the current module level, abort view transitions if the snapshot viewport changes size. We can take this up in future levels as use cases and solutions permit. |
RESOLVED: For the current module level, abort view transitions if the snapshot viewport changes size. We can take this up in future levels as use cases and solutions permit. |
The snapshot viewport size would change by:
This impacts a transition if it happens:
Options:
Skip the transition
A resize creates situations the developer may not have predicted and catered for. For example, they may have assumed that their site header would be the same size in the old and new states. A resize can break that assumption.
Given that the transition is an enhancement, and the user is performing an 'interrupting' action by resizing the window, skipping the transition seems reasonable.
Update the animation state and continue
All 'new' elements will be updated with their new size, which in turn will update all animations in progress. This includes the transition container representing the root element - this will be the only case where this element animates width & height.
The text was updated successfully, but these errors were encountered: