Skip to content

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

@nt1m

Description

@nt1m

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 @smfr @nmoucht

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions