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

> I think the current behaviour is the right default. Same as CSS animations - we don't cancel out-of-viewport animations.

The fact that out-of-viewport CSS animations don't add rendering cost is a reason to consider a different default here. I especially feel that after seeing examples like https://github.com/w3c/csswg-drafts/issues/8320#issuecomment-2023077559. For an infinite scroller type of case, authors will add a name to all list items without realizing its causing the browser to render offscreen content. If they do need it to render (for cases you mentioned) and the browser doesn't by default, they'd notice a visually incorrect animation and opt-in to it.

But ok to take either approach at the WG meeting.

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


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

Received on Thursday, 11 April 2024 08:16:52 UTC