[csswg-drafts] [cssom-view] Proposal: add Element.isRendered() to detect if element is rendered. (#6850)

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

== [cssom-view] Proposal: add Element.isRendered() to detect if element is rendered. ==
I filed a proposal on https://github.com/whatwg/html/issues/7379 but cross-posting it here, since [cssom-view](https://drafts.csswg.org/cssom-view/#extension-to-the-element-interface) is likely a good place for speccing it if it is a good idea.

The issue above has a full description of the proposal, but the summary is that I would like to propose adding `Element.isRendered()` function to detect whether an element is rendered. Specifically, if it is `display: none` or in such a subtree, or in a subtree of a `content-visibility: hidden` element, then `isRendered()` on that element would return false. Otherwise it would return true

(please see the other issue for discussions of whether things like images that haven't loaded be unrendered as well).





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


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

Received on Wednesday, 1 December 2021 18:59:13 UTC