Re: [csswg-drafts] [cssom-view] Proposal: add Element.isVisible[toDocument] to detect if element is visible in the document. (#6850)

> However, one part of the proposal that I think I'm missing - what would `isVisible()` return for an element in a `content-visibility: auto` subtree where contents are skipped?

Good question. I think skipped descendants of a content-visibility: auto element should return true for isVisible, since if the user scrolled to them, they are indeed visible. And it also aligns with the accessibility code I inlined above, which is a good sign.

-- 
GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6850#issuecomment-1030416796 using your GitHub account


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

Received on Friday, 4 February 2022 23:03:27 UTC