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;
Related at-rule @viewport
Initial value zoom
Percentages refer to the size of bounding box
Media as each of the properties of the shorthand:
Computed value as specified
Canonical order the unique non-ambiguous order defined by the formal grammar

Syntax

Values

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

Formal syntax

zoom | fixed

Accessibility concerns

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

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
Basic support 29 Yes
Prefixed
Yes
Prefixed
Prefixed Requires the vendor prefix: -ms-
No 10
Prefixed
10
Prefixed
Prefixed Requires the vendor prefix: -ms-
? No
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support ? 29 Yes
Prefixed
Yes
Prefixed
Prefixed Requires the vendor prefix: -ms-
No ? No ?

© 2005–2018 Mozilla Developer Network 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