CKTIS / CSS
lvh — large viewport height
The lvh unit represents 1% of the large viewport height, determined assuming retractable browser interface elements are hidden.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<number>lvhlvh is a length unit: 1lvh equals 1% of the large viewport height. Write the number directly before the unit, for example 100lvh.
The value of 1lvh stays the same as browser controls retract or expand. It changes only when the large viewport height changes. Resizing only the width does not affect this value if that height stays the same. Expanded controls may obscure content.
svh refers to the small viewport, while dvh refers to the dynamic viewport. The specification maps vh to lvh. The example uses min-height, allowing the panel to 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>lvh example</title>
<style>
body { margin: 0; }
.panel {
min-height: 100lvh;
background: lightblue;
}
</style>
<div class="panel">100lvh</div>
</html>Result
A light-blue panel labeled "100lvh", with a minimum height equal to the large viewport height.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.