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

The CSS Working Group just discussed `[cssom-view] What does element.checkVisibility() return for display: contents elements?`, and agreed to the following:

* `RESOLVED: Close no change, reopen if use cases are presented on the issue`

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> ntim: right now checkVisibility will return that display: contents elements are not visible because they don't have a box<br>
&lt;emilio> ... which I find not very intuitive<br>
&lt;emilio> ... I don't know if that was intentional or not<br>
&lt;emilio> ... WPTs don't test for this<br>
&lt;emilio> q+<br>
&lt;astearns> ack emilio<br>
&lt;vmpstr> emilio: FF also returns this, not sure if it was intentional. I can see usecases. The spec is not ambiguous<br>
&lt;vmpstr> q+<br>
&lt;emilio> ntim: it's weird because display: contents is technically visible<br>
&lt;astearns> ack vmpstr<br>
&lt;emilio> astearns: it's children are anyways<br>
&lt;emilio> vmpstr: I don't think this was intentional<br>
&lt;dbaron> (leaving the meeting now)<br>
&lt;emilio> ... idea was to catch display: none and so<br>
&lt;emilio> ntim: my suggestion would be to check for the element or any flat tree ancestor having display: none<br>
&lt;vmpstr> emilio: seems ok-ish to me, but i also think there are use cases for making display:contents or considering it invisible. So maybe this should be opt in. I don't know<br>
&lt;noamr> q+<br>
&lt;vmpstr> ntim: you can see display contents elements<br>
&lt;vmpstr> emilio: you can see their children<br>
&lt;vmpstr> astearns: you don't see the box, it's background, just its children<br>
&lt;bradk> Bay Area just had a small earthquake<br>
&lt;astearns> ack noamr<br>
&lt;emilio> noamr: What is the behavior for an element with visibility: hidden that has children with visibility: visible? I'd expect this to be consistent<br>
&lt;emilio> emilio: It's consistent with that<br>
&lt;emilio> noamr: this is an invisible element with visible children, so it's consistent with that<br>
&lt;emilio> astearns: I'd suggest taking it back to the issue<br>
&lt;emilio> ... if there are use cases we can come back to this<br>
&lt;SebastianZ> +1 on Noam's points.<br>
&lt;emilio> ... but I don't see consensus<br>
&lt;emilio> vmpstr: use cases for making it visible?<br>
&lt;emilio> ntim: not necessarily, just a bit unintuitive<br>
&lt;emilio> ... don't care either way<br>
&lt;emilio> ... I guess for visibility we only check the visibility if checkVisibilityCSS option is<br>
&lt;emilio> ... specified<br>
&lt;emilio> astearns: suggested to close no change and add WPTs<br>
&lt;emilio> fantasai: if there are use cases for both behaviors can we make that flip?<br>
&lt;emilio> astearns: we didn't hear use cases<br>
&lt;emilio> fantasai: so point is to go back to the issue to request use cases?<br>
&lt;emilio> astearns: I was suggesting close no change and reopening if use cases are presented<br>
&lt;emilio> ... if you'd like to keep it open fine with that<br>
&lt;emilio> ntim: don't feel strongly, I could see web devs wanting to check if contents are visible<br>
&lt;emilio> ... but if we don't respect that for visibility then...<br>
&lt;emilio> RESOLVE: Close no change, reopen if use cases are presented on the issue<br>
&lt;emilio> RESOLVED: Close no change, reopen if use cases are presented on the issue<br>
&lt;emilio> ntim: should we add a note to the spec?<br>
&lt;emilio> astearns: We should def. have a WPT<br>
&lt;emilio> ... having it in the draft is an editorial decision<br>
&lt;ntim> my zoom is freezing, but I can add one<br>
&lt;emilio> vmpstr: I can add one<br>
&lt;fantasai> scribenick: fantasai<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9478#issuecomment-1768934586 using your GitHub account


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

Received on Wednesday, 18 October 2023 16:38:19 UTC