CKTIS / CSS
zoom — scaling that affects layout
The `zoom` property scales an element and affects layout. It accepts the keyword `normal`, a nonnegative number, or a nonnegative percentage.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
zoom: normal | <number [0,∞]> | <percentage [0,∞]>;zoom scales an element, affecting layout — unlike transform: scale(). Its initial value is 1, and the keyword normal is equivalent to 1. Values 1.5 and 150% are equivalent; 0.5 shrinks. Negative values are invalid, while 0 and 0% are treated as no scaling.
The property is not inherited, but nested scales multiply: 2 inside 2 produces an effective scale of 4. The example should produce a rectangle measuring 150 × 60 CSS pixels. Local verification is required.
Examples
<!doctype html>
<meta charset="utf-8">
<title>zoom</title>
<style>
.box {
width: 100px;
height: 40px;
background: teal;
zoom: 150%;
}
</style>
<div class="box"></div>Result
150 × 60 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.