Re: [csswg-drafts] [css-view-transitions-2] Ignore offscreen elements from participating in transitions (#8282)

> > The user scroll down during the animation
> 
> 
> 
> At what stage of the transition is this happening? For both the old and new DOM we'll compute the element's visibility only once when we're looking for elements with names. So a visibility change after that (from scrolling) won't impact whether the element is captured or the pseudo-DOM structure.

The old element is out of viewport when capturing the old state, and the usef scrolls to a position where it's in viewport. So we considered it invisible when capturing but that state changed.

> 
> 
> 
> And can you clarify in what situation the UA would add "-ua-from-out-of-viewport". The idea of UA provided classes sounds reasonable, just want to make sure I get the details right.

If at the time of capturing the old state the element is invisible, the pseudos would receive this vt class. The author can then decide how to animate it if at all.

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


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

Received on Wednesday, 24 April 2024 11:36:41 UTC