Skip to Content
Platform.Ontology

Browser zoom and default text size

Infers page zoom and the person's default font size from layout measurements.

Gets silentlyLanguage and settingsAccessibilityWeb browsersWhen the page loadsWhile you use it

In one line

Can guess your page zoom and your default text size from how pages lay out

Infers page zoom and the person's default font size from layout measurements.

Zoom (50% to 500%) from devicePixelRatio and window size; default font size (usually 16 px, but 12 to 24 px settable) from computed em. Large values suggest low vision or older users.

What it can and can't do

What the user does: Nothing. It happens as the page measures itself while loading

It can

  • Guess your zoom, from 50% to 500%
  • Guess your default text size, often 16 pixels but set between 12 and 24
  • Hint that you may have low vision or be an older user when sizes are large

It cannot

  • Know for sure that you have low vision
  • See your other accessibility settings from this alone
  • Show a permission pop up; there is none

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11None
EdgeSupported122015-07-29None
FirefoxSupported12004-11-09None
SafariSupported32007-10-26None
Safari on iPhoneSupported3.22010-04-03None
Chrome on AndroidSupported182012-06-27None
Samsung InternetSupported1.02013-04-27None

How a site asks for it

APIdevicePixelRatio, outerWidth/innerWidth, getComputedStyle(root).fontSize, matchMedia(resolution)
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
zoomfloatpercent25 to 500 (steps 25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500)Not listed
default font sizefloatpx9, 12, 16, 20, 24 presetsNot listed

Technical limits

  • No direct API
  • Safari iOS Dynamic Type affects CSS only with -apple-system-body

The story

What it is

The page can work out your zoom level and default text size.

For you

Pages look the right size for you when you zoom in or enlarge text. You do not see that the page measured those choices. They may hint that you have low vision.

For makers

Makers measure layout to keep pages usable. Trackers use zoom and font size as a unique clue, and they may guess age or vision needs.

Where you see it

TypeExampleApps
gamesA browser game rescales its canvas when a player zooms in, so buttons stay clickable.None named
accessibilityA site increases spacing and button sizes when it sees large text.None named
mediaA video site picks bigger controls when it sees a high zoom.None named
adsAn ad profile may guess an older user from large default text.None named
analyticsA fingerprinting script uses zoom and font size as extra clues.None named
securityA fraud tool flags unusual display settings as an emulator or bot.None named

Risks

  • Reveals vision needs
  • Part of a fingerprint

Good uses and abuse

Legitimate uses

  • Respect larger text

Known abuse

  • Age or disability inference

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2.5Rough identifying entropy, when known

Sources

How well checked: Inferred from related behavior.

On this page