Re: [csswg-drafts] [css-contain-2] Consider forcing layout on content that is skipped when querying it on an element with content-visibility (#9675)

The problem here is that it's not the "skip the contents" part that is making the element be 0 height, it's the fact that when not relevant to the user `content-visibility: auto` applies size containment (among other things).
 
You can see a similar result by removing content-visibility: auto and replacing it with `contain: size` -- the height becomes 0 even if its contents are laid out. 

`getBoundingClientRect` and other things that force rendering to be finished do not remove `contain: size`, they only ensure no lazy rendering optimization is script visible



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


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

Received on Monday, 4 December 2023 18:59:19 UTC