[Home] ↣ [Viewport Test Cases] ↣ [Viewport Units]

Each page sizes a full-height layout with a different CSS unit, puts a red button at its bottom edge and shows a readout of 100vh, 100svh, 100lvh, 100dvh and innerHeight. Per the CSS spec, vh equals the large viewport height (lvh). If a browser gives vh a larger value, layouts sized with vh no longer fit the visible area and the red button ends up hidden or off screen.

vh layouts

These fail in a browser where vh equals the full web view height: the red button sits under the bottom bar or off screen, and the readout shows FAIL.

Controls

These do not use vh, so the red button should always be fully visible.