A basic algorithm to check if any given webpage has "accessible" text scaling, based on https://github.com/w3c/silver/issues/506#issuecomment-817045025, which approximates x-height as ~50% of font-size
(so the min and max x-height sizes from user research have been 2x'd):
- All text can reach a rendered
font-size
of least ~88 CSS px - No text exceeds a rendered
font-size
of ~120 CSS px
By "rendered font-size
", I mean the computed CSS font-size
value multiplied by the current zoom level (100%, 150%, etc). So for example, assuming linear scaling, 17.6px
would be the minimum acceptable size because browsers have a max zoom of 500% and 17.6 * 5 = 88
.
- Start at some "desktop" viewport, say 1280px wide, and 100% zoom