Re: [csswg-drafts] [css-view-transitions-1] Handling cases where transition constraints are broken mid transition (#7882)

Another option for an element changing to `display: none` (or being removed from the DOM):

If there's a `::view-transition-old`: Remove the `::view-transition-new` from that pair, and set the end position & size to the captured element's position & size. This means the animation would continue as if there was no captured element in the new state.

If there isn't a `::view-transition-old`: Remove the `::view-transition-group`.

If the element is reshown during the transition: Do nothing. It can't come back.

-- 
GitHub Notification of comment by jakearchibald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7882#issuecomment-1333614303 using your GitHub account


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

Received on Thursday, 1 December 2022 11:23:00 UTC