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

nt1m has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] What does element.checkVisibility() return for display: contents elements? ==
The [checkVisibility definition](https://drafts.csswg.org/cssom-view/#dom-element-checkvisibility) includes:

> If this does not have an associated [box](https://drafts.csswg.org/css-display-4/#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 explicit test that. Just want to make sure it is an intentional choice.

cc @josepharhar @vmpstr 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9478 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 17 October 2023 03:48:51 UTC