The zoom
CSS Descriptor sets the initial zoom factor of a document defined by @viewport
.
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 |
/* Keyword value */ zoom: auto; /* <number> values */ zoom: 0.8; zoom: 2.0; /* <percentage> values */ zoom: 150%;
auto
<number>
<percentage>
auto | <number> | <percentage>
Specification | Status | Comment |
---|---|---|
CSS Device Adaptation The definition of '"zoom" descriptor' in that specification. | Working Draft | Initial specification |
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 | ? | ? | ? | ? | ? | ? |
© 2005–2017 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/zoom