Skip to content

Check for full visibility #249

@jsha

Description

@jsha

We should have a check for "this element is fully visible," where "visible" means "fully in the viewport, and not obscured by other elements."

We might be able to do this with elem.getClientBoundingRect(), and checking (a) that the bounding rect is within the viewport, and (b) checking each corner of the element with https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint, to ensure that it is the element returned (i.e. there's nothing stacked on top).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions