CSS - min-zoom
The min-zoom
CSS descriptor sets the minimum zoom factor of a document defined via @viewport
. The browser will not zoom out any further than this, whether automatically or at the user's request.
Syntax
Values
auto
- The user agent will set the document's upper zoom factor limit.
<number>
- A non-negative number limiting the minimum value of the zoom factor.
<percentage>
- A non-negative percentage limiting the minimum value of the zoom factor.
Formal syntax
CSS
Copy Code
auto <a href="css/value_definition_syntax#single_bar" title="Single bar">|</a> <a href="css/number" title=""><number></a> <a href="css/value_definition_syntax#single_bar" title="Single bar">|</a> <a href="css/percentage" title=""><percentage></a>
Description
The min-zoom
CSS descriptor sets the minimum zoom factor of a document defined via @viewport
. The browser will not zoom out any further than this, whether automatically or at the user's request.
A zoom factor of 1.0
or 100%
corresponds to no zooming. Larger values zoom in. Smaller values zoom out.
Related at-rule | @viewport |
---|---|
Initial value | auto |
Percentages | the zoom factor itself |
Media | visual, continuous |
Computed value | auto , or a non-negative number or percentage as specified |
Canonical order | the unique non-ambiguous order defined by the formal grammar |
Browser Compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? | ? |
Specifications
Specification | Status | Comment |
---|---|---|
CSS Device Adaptation The definition of '"min-zoom" descriptor' in that specification. |
Working Draft | Initial definition |
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/@viewport/min-zoom