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

For deciding whether an element's box is visible or not, we should probably use the [snapshot containing block](https://drafts.csswg.org/css-view-transitions-1/#snapshot-containing-block-concept). Since any part of that block can become visible during the transition (URL bar hidden vs shown) so we want to capture an element if its in that block.

Re: which reference rect to use, I agree using ink overflow would be ideal but +1 to start off with the simpler approach of using the border-box given the complexity with ink overflow. There's probably more cases where authors would be ok with using the border box (ignore the element if only a small shadow is showing).

Anchor positioning is running into this too (see https://github.com/w3c/IntersectionObserver/issues/522). Hopefully having use-cases come up from both these features will give us the motivation to figure out exposing ink overflow too. @fantasai @tabatkins fyi.


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


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

Received on Monday, 8 April 2024 14:05:52 UTC