WebView prototypes

Small self-contained pages for testing how a WebView lays out real things: safe areas, viewport units, and where the navigation goes.

viewport —
safe area t r b l —

prototypes

Viewport & safe area viewport.html
Read the numbers straight off the device: all eight viewport units measured from real elements, safe-area insets, pixel density, keyboard behaviour, pointer and hover, and 40 live media queries.
dvh svh lvh safe-area-inset keyboard devicePixelRatio
Navigation placement nav.html
Where should the nav go? Switch between a left sidebar, a right sidebar and a bottom bar, and check each one clears the notch, the status bar and the home indicator in both orientations.
sidebar bottom bar orientation device presets
Popover placement popover.html
A popover left to the user agent's own centring, against one anchored with CSS anchor positioning, with a per-frame trace of where each one lands. Built for a foldable: fold the device with one open and watch them re-place.
popover anchor positioning foldable viewport-segment
open viewport with ?fit=cover