E473 [cssom-view] Proposal: add Element.isVisible[toDocument] to detect if element is visible in the document. · Issue #6850 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

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

@vmpstr

Description

@vmpstr

I filed a proposal on whatwg/html#7379 but cross-posting it here, since cssom-view 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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0