- From: vmpstr via GitHub <sysbot+gh@w3.org>
- Date: Wed, 01 Mar 2023 17:10:35 +0000
- To: public-css-archive@w3.org
vmpstr has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-contain-2] If element is in the top layer, are its contents necessarily relevant to the user == 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](https://www.w3.org/TR/css-contain-2/#relevant-to-the-user) section says that the element is relevant to the user if: > Either the element or its [contents](https://www.w3.org/TR/css-contain-2/#element-contents) are placed in the [top layer](https://fullscreen.spec.whatwg.org/#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 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8514 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 1 March 2023 17:10:37 UTC