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

nt1m has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain-2] Consider forcing layout on content that is skipped when querying it on an element with content-visibility ==
On https://rishi.app/blog/using-dotenv-vault-with-edgio-and-nuxt-js/

`$("ul").getBoundingClientRect()` will return a zero height, but will return the correct height when scrolled into view. `ul` has content-visibility: auto so only its contents are skipped, so lazy layout doesn't apply here unfortunately.

It seems a bit unexpected, especially when the spec says values queried from script should be consistent.

cc @rwlbuis @vmpstr 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9675 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:38:35 UTC