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.
- MDN Understanding WCAG, Guideline 1.4 explanations
- Understanding Success Criterion 1.4.4 | Understanding WCAG 2.0
Specifications
Specification | Status | Comment |
---|---|---|
CSS Device Adaptation The definition of '"user-zoom" descriptor' in that specification. |
Working Draft | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
user-zoom descriptor | Chrome Full support 29 | Edge
Full support
12
| Firefox No support No | IE
Full support
10
| Opera Full support 16 | Safari No support No | WebView Android Full support 37 | Chrome Android Full support 29 | Firefox Android No support No | Opera Android ? | Safari iOS No support No | Samsung Internet Android Full support 2.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Requires a vendor prefix or different name for use.
- Requires a vendor prefix or different name for use.