🏠 New in Low Baseline Support: checkVisibility()
March 5, 2024
The checkVisibility()
method checks if an element is potentially visible, with optional parameters for the kinds of visibility to check. For example, it checks whether the element has the style display: none
, but can also check for visibility: hidden
.
Source features
api.Element.checkVisibility
[mdn]