Skip to content

[css-contain-2] If element is in the top layer, are its contents necessarily relevant to the user #8514

@vmpstr

Description

@vmpstr

I am looking at the following test:
https://wpt.fyi/results/css/css-contain/content-visibility/content-visibility-with-top-layer-006.html

It essentially puts a dialog in the top layer. This dialog has a large spacer followed by a content-visibility: auto element. It then asserts that the content-visibility: auto element should be relevant to the user, as measured by its size.

The applicable text of the relevant to the user section says that the element is relevant to the user if:

Either the element or its contents are placed in the top layer.

It doesn't seem to apply here, because neither the content-visibility: auto element nor any of the descendants of the content-visibility: auto element are in the top layer. That is, unless "element being in the top layer" implies that all of the descendants of "element" are also in the top layer. That is, not, however my understanding of this.

Can someone please check my reasoning? :) If this looks correct, then I think the test expectations are not aligned with the spec

/cc @mrobinson @frivoal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions