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

> I would prefer if the default value gave the UA flexibility to apply whatever behavior it judges more efficient.

The current spec technically doesn't. The browser has to render offscreen content because the animation might bring it onscreen. For example, you delete an item from the list and the next item slides onscreen into place while its content (item #) animates.

But we can allow the browser to ignore elements which are away from the viewport given a UA defined margin. That's likely what authors want anyway, otherwise its only the last few frames of the animation when the element comes onscreen which looks weird.

So this property can be a tri-state of: visible, hidden and auto where auto uses UA heuristic to decide whether an element is visible or hidden.

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


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

Received on Tuesday, 9 April 2024 17:07:12 UTC