- From: Chris Harrelson via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Dec 2021 22:57:13 +0000
- To: public-css-archive@w3.org
I propose we change to `Element.isVisible`, meaning conceptually "visible to the document" (*not* "visible to the user" - `IntersectionObserver` would be needed for that). Definition: * Is [rendered](https://html.spec.whatwg.org/#being-rendered) * Has a used style of `visibility` of `visible` * Does not [skip its contents](https://drafts.csswg.org/css-contain-2/#skips-its-contents) I think this is better, because it is (a) clearly defined in terms of the spec, and (b) solves various use cases we've encountered well. Use cases include: * Detect whether content is skipped (in order to avoid forcing layout, such as wicg/display-locking#112) * Know when an element is visible (e.g. via puppeteer or similar frameworks) -- GitHub Notification of comment by chrishtr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6850#issuecomment-989294201 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 December 2021 22:57:15 UTC