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