[csswg-drafts] [css-view-transitions-1] Handling snapshot viewport sizes changes during transitions (#8045)

jakearchibald has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-1] Handling snapshot viewport sizes changes during transitions ==
The [snapshot viewport](https://github.com/w3c/csswg-drafts/pull/8037) size would change by:

- The user or [script](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeTo) resizing the window.
- A mobile device changing orientation.

This impacts a transition if it happens:

- Between capturing the old and new states.
- During the transition animation.

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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8045 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 8 November 2022 17:23:37 UTC