Widely Available
id: check-visibility
checkVisibility()
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.
Baseline Status:
Achieved Widely Available on Sep 5, 2026 (Cross-browser Newly Available since Mar 5, 2024).
Desktop Browser Engine Support
Google Chrome
105
Supported
Mozilla Firefox
106
Supported
Apple Safari
17.4
Supported
Microsoft Edge
105
Supported
Mobile Browser Engine Support
Chrome Android
105
Firefox Android
106
Safari iOS
17.4
Specifications and References
MDN Browser Compat Data Keys:
api.Element.checkVisibility ↗
api.Element.checkVisibility.options_checkOpacity_parameter ↗
api.Element.checkVisibility.options_checkVisibilityCSS_parameter ↗
api.Element.checkVisibility.options_contentVisibilityAuto_parameter ↗
api.Element.checkVisibility.options_opacityProperty_parameter ↗
api.Element.checkVisibility.options_visibilityProperty_parameter ↗