Re: [csswg-drafts] [css-contain-2] Is proximity to the viewport a property of the element or the box (#8990)

Between placing the proximity on the element vs the box, the pro of placing it on the element is simplicity. We don't have to define when the state is reset since the layout could be recomputed at multiple points. Or changing from inline to block layout. That said, all such cases have been clearly defined for "last remembered size" so we should try to build on top of the same timing.

The only motivating case to place this on the box would be the author detaching the element from offscreen to in viewport. If the proximity is not re-computed in the same frame, there will be one frame where the element is not displayed.

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


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

Received on Tuesday, 11 July 2023 18:06:27 UTC