Window: visualViewport property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2021.
ThevisualViewport read-only property of theWindow interface returns aVisualViewport object representing the visual viewport for a given window, ornull if current document is not fully active.
In this article
Value
AVisualViewport object.
Specifications
| Specification |
|---|
| CSSOM View Module> # dom-window-visualviewport> |