iOS Safari and the 16px Form Zoom Rule

Josh W. Comeau's "Today I Learned" note flags a Safari-on-iOS behavior worth knowing if you work on forms: the font size of an <input> decides whether focusing the field zooms the page.

Where the threshold sits

  • 16px or larger — Safari focuses into the input normally, with no zoom.
  • 15px or less — the viewport zooms into that input.

The presumption is that Safari treats sub-16px type as too small to read and zooms to help you see what you're doing — an accessibility gesture. To avoid it, keep the font big enough.

Try it yourself

Comeau published a Pen so you can play with the behavior directly (here's Josh's exact Pen). There's a second demo from Chris Coyier showing San Francisco versus Caveat at 16px, viewable in Debug Mode, where you can change the font size to see what does and doesn't zoom.

The tradeoff

The author broadly likes the feature: it helps people see what they're doing and discourages super-tiny font sizes. The slight bummer — with no blame directed at anyone — is that not all typefaces are created equal for readability at different sizes.