zoomBaseline · Newly available
The zoom CSS property scales the size of an element. Unlike the transform property, a zoomed element affects page layout.
Works in the latest version of every major browser, but older devices may not support it yet. Baseline since May 14, 2024.
Browser support
DesktopChrome
1+Supportedsince Dec 11, 2008
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–125Not supported
126+Supportedsince May 14, 2024
Current: 157Safari
1–3Not supported
3.1+Supportedsince Mar 18, 2008
Current: 27MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155Firefox Android
4–125Not supported
126+Supportedsince May 14, 2024
Current: 157Safari iOS
1–2Not supported
3+Supportedsince Jun 17, 2009
Current: 27How to use
Every current browser supports this, but it only became Baseline on May 14, 2024. Use it as a progressive enhancement, or keep a fallback if you support older devices.
Example
Full syntax and examples are on MDN: zoom.
Feature detection
CSS · check before using
@supports (zoom: initial) {
/* styles that rely on zoom */
}
/* or in JavaScript */
if (CSS.supports("zoom", "initial")) {
// use it
}