Skip to content

[cssom-view] What does element.checkVisibility() return for display: contents elements? #9478

@nt1m

Description

@nt1m

The checkVisibility definition includes:

If this does not have an associated box, return false.

That means display: contents elements are considered as invisible. This seems like what Chrome implements, but the related WPT (https://github.com/web-platform-tests/wpt/blob/master/css/cssom-view/checkVisibility.html) does not explicitly test that. Just want to make sure it is an intentional choice.

cc @josepharhar @vmpstr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions