- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 18 Oct 2023 16:26:11 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-contain-2] API to expose skipped content state`, and agreed to the following: * `RESOLVED: Extend checkVisibility to expose content-visibility: auto state` <details><summary>The full IRC log of that discussion</summary> <emilio> ntim: in Safari we have some reader detection code that does some visual analysis and performs layout in different subtrees<br> <emilio> ... we want an API to be able to skip hidden content for visual analysis<br> <emilio> ... because otherwise it cancels out optimizations<br> <vmpstr> q+<br> <emilio> ... ideally it'd cover content-visibility: auto and hidden<br> <emilio> q+<br> <astearns> ack khush<br> <emilio> ack khush<br> <astearns> ack vmpstr<br> <emilio> vmpstr: checkVisibility was close to cover this use case<br> <emilio> ... it deals with c-v: hidden<br> <emilio> ... I'd suggest extending checkVisibility<br> <emilio> ... content-visibility: auto content remains accessible to find-in-page / tab-navigation / etc so it's not "hidden hidden"<br> <emilio> ... so not sure if it'd be consistent with the model<br> <emilio> ntim: you can kinda query it with the statechange event<br> <emilio> ... but it's less convenient and you might miss some events<br> <astearns> ack emilio<br> <miriam> scribe+<br> <miriam> emilio: not opposed<br> <emilio> ... and I agree with vmpstr on extending checkVisibility<br> <emilio> ... but curious about the use case because it seems reader-mode should care about content-visibility: auto<br> <miriam> emilio: to check size you need to layout<br> <emilio> ntim: so we have a check for the element being small and skipping the content<br> <emilio> ... and the rest of the code doesn't care about layout<br> <emilio> ... but actually slows down the website because it lays out the skipped subtrees<br> <vmpstr> q?<br> <vmpstr> q+<br> <emilio> ntim: could be a separate method on checkVisibility even<br> <miriam> emilio: The element could be large, and you need to lay it out<br> <miriam> … kinda silly not to expose this<br> <emilio> ... it's a bit weird that with the statechange event being async you can observe an element being hidden before the state change arrives<br> <emilio> ... might cause some subtle bugs<br> <emilio> ... but anyhow it seems fine to expose<br> <emilio> q?<br> <astearns> ack vmpstr<br> <emilio> vmpstr: just to answer emilio, I don't think it's unique to this<br> <emilio> ... intersectionobserver has the same issue, where you could do your own math via gBCR<br> <emilio> ... I'd like to suggest not reusing checkVisibility for this<br> <emilio> q+<br> <miriam> emilio: why?<br> <emilio> vmpstr: to me the problematic word there is visibility<br> <emilio> ... because if you consider things like a11y it's there<br> <emilio> ... so claiming it's not visible is not entirely accurate<br> <emilio> ... visibility is a little overloaded<br> <astearns> ack emilio<br> <miriam> emilio: but that's true of all the other things CV checks<br> <miriam> ... things with opacity 0 are still in the visibility tree<br> <miriam> … as long as you opt in for content visibility auto, seems like you need to check that anyway<br> <emilio> vmpstr: I guess opacity would be similar to this, yeah, the other's won't<br> <emilio> astearns: seems there's consensus on exposing this, but not in whether to change checkVisibility or something else<br> <emilio> ... might be worth resolving on that and discussing the other thing in the issue<br> <emilio> fantasai: was going to say the same thing as emilio, checkVisibility is already a misnomer and was designed with this extension in mind<br> <emilio> ntim: I don't feel strongly either way<br> <vmpstr> +1<br> <emilio> RESOLVED: Extend checkVisibility to expose content-visibility: auto state<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9474#issuecomment-1768906480 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:26:13 UTC