Optionalbaseline: number
The layout height to measure against, in px. Defaults to window.innerHeight; pass
the height read before the keyboard rose where the page may shrink with it (a host whose viewport
asks for interactive-widget=resizes-content).
Whether a virtual keyboard is up, read from the visual viewport (the part of the page the keyboard leaves visible). Pinch zoom shrinks the visual viewport too, so its scale is undone first. While a keyboard overlays the page (the browser's VirtualKeyboard API with
overlaysContent, as aKeyboardAccessorysets it), the browser's own report of the keyboard is read instead.