CKTIS / CSS
svw — small viewport width
The svw unit represents 1% of the small viewport width, calculated assuming that dynamically expanding browser interface elements are expanded.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<number>svwsvw is a CSS length unit: 1svw equals 1% of the small viewport width. Write the number and unit without a space, for example width: 50svw. Its reference is the viewport, not the parent element's width.
The small viewport assumes that browser interface elements capable of expanding and retracting are expanded. Retracting those elements alone does not change svw; resizing the viewport can change it. “Small” does not mean a mobile breakpoint here.
vw corresponds to lvw and uses the large viewport; dvw uses the dynamic viewport. svw measures physical width, whereas svi follows the inline axis determined by the writing mode. Width units can produce identical results when browser interface changes affect only the available height.
Examples
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html { overflow: hidden; }
body { margin: 0; }
.bar {
width: 50svw;
height: 24px;
background: teal;
}
</style>
<div class="bar"></div>Result
A teal bar, 24 CSS pixels high and half the small viewport width. If the small viewport width is 800 CSS pixels, the bar is 400 CSS pixels wide.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.