CKTIS / CSS
lvmin — the large viewport’s smaller dimension
The lvmin unit represents 1% of the large viewport’s smaller dimension, calculated with retractable browser interface elements assumed hidden.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<number>lvminlvmin is a CSS length unit. 1lvmin equals the smaller of 1lvw and 1lvh, not the parent element’s size. Write the number directly before the unit: 20lvmin.
The large viewport assumes retractable browser interface elements are hidden. The unit stays stable until the viewport is resized; visible browser bars can obscure content.
svmin references the small viewport, dvmin the dynamic viewport, and vmin equals lvmin. In the example, a large viewport of 1000 × 800 CSS pixels gives 1lvmin = 8px, making the square’s side 160px.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lvmin example</title>
<style>
html, body { margin: 0; }
.square {
width: 20lvmin;
height: 20lvmin;
background: teal;
}
</style>
<div class="square"></div>
</html>Result
For a large viewport of 1000 × 800 CSS px: a teal square measuring 160 × 160 CSS px.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.