liveBook · Manning

User-scalable attribute

As explained in Architecting Accessibility

The user-scalable attribute of a viewport metadata declaration controls whether users may zoom a web page.

The `user-scalable` attribute in a viewport meta declaration controls whether users can zoom. It defaults to allowing zoom; setting it to `no` prevents people, including those with low vision, from enlarging page content. Leave zoom available, and remember that pinch-to-zoom alone does not replace the ability to resize text. section 4.4

 <meta name="viewport" content="width=device-width, initial-scale=1">

This viewport declaration does not disable user zoom. Avoid adding `user-scalable=no` or a restrictive `maximum-scale` value. section 4.4

 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
 <meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1">

These declarations show settings that can restrict zoom and create barriers for users who need to enlarge content. section 4.4

How Architecting Accessibility covers it

How deep it goes
Defines the attribute’s default and effect when set to no, and warns that pinch-to-zoom does not replace text resizing.
Examples
Contrasts a viewport declaration that leaves zoom available with declarations using restrictive zoom settings.
What you can do after
Configure viewport metadata without preventing users from enlarging page content.
How it connects
Links viewport scaling with pinch-to-zoom, maximum-scale, and text resizing.

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.