user-zoom

The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport.

/* Keyword values */
user-zoom: zoom;
user-zoom: fixed;

Syntax

Values

zoom
The user can zoom in or out.
fixed
The user cannot zoom in or out.

Accessibility concerns

Disabling zooming capabilities prevents people experiencing low vision conditions from being able to read and understand page content.

Formal definition

Related at-rule@viewport
Initial valuezoom
Percentagesrefer to the size of bounding box
Computed valueas specified

Formal syntax

zoom | fixed

Examples

Disabling user zoom

@viewport {
  user-zoom: fixed;
}

Specifications

Specification Status Comment
CSS Device Adaptation
The definition of '"user-zoom" descriptor' in that specification.
Working Draft Initial definition

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
user-zoom descriptorChrome No support 29 — 84Edge Full support 12
Prefixed
Full support 12
Prefixed
Prefixed Implemented with the vendor prefix: -ms-
Firefox No support NoIE Full support 10
Prefixed
Full support 10
Prefixed
Prefixed Implemented with the vendor prefix: -ms-
Opera Full support 16Safari No support NoWebView Android No support NoChrome Android No support 29 — 84Firefox Android No support NoOpera Android Full support 16Safari iOS No support NoSamsung Internet Android Full support 2.0

Legend

Full support
Full support
No support
No support
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

See also