CKTIS / CSS
dvh — dynamic viewport height
The dvh unit equals 1% of the dynamic viewport height, accounting for browser interface elements that expand and retract.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<number>dvhdvh is a CSS length unit: 1dvh equals 1% of the dynamic viewport height. 100dvh represents that entire height, not the parent's height.
svh refers to the small viewport, while lvh and vh refer to the large viewport. dvh accounts for expanding and retracting browser interfaces. An on-screen keyboard does not necessarily affect this unit.
Changes during scrolling can trigger layout recalculation. Smooth updates during interface animations are not guaranteed. The example uses min-height: 100dvh so the panel can grow with its content.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dvh demo</title>
<style>
body { margin: 0; }
.panel {
box-sizing: border-box;
min-height: 100dvh;
padding: 16px;
background: lightblue;
}
</style>
<main class="panel">Dynamic viewport panel</main>
</html>Result
Dynamic viewport panel
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.