W3cubDocs

/CSS

@viewport.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 value zoom
Percentages refer to the size of bounding box
Computed value as 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 compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
user-zoom descriptor 29 — 84 12
Prefixed
12
Prefixed
Prefixed Implemented with the vendor prefix: -ms-
No 10
Prefixed
10
Prefixed
Prefixed Implemented with the vendor prefix: -ms-
16 No
Mobile
Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
user-zoom descriptor No 29 — 84 No 16 No 2.0

See also

© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport/user-zoom