Re: [csswg-drafts] [css-fonts][css-viewport] UAs inconsistent in how OS font settings affect the default font-size `medium` (#10674)

> That said, another possible path here is that browsers could interpret some of these user preferences as implying different defaults for the zooming mechanisms that scale everything, and thus essentially adjust web pages on the one set of inputs (viewport size) that we are currently able to assume (to some degree) that they can adjust across.

Zooming could be a good default, but it can push UI offscreen (see: [Rethinking Text Resizing on Web](https://medium.com/airbnb-engineering/rethinking-text-resizing-on-web-1047b12d2881)). Because we cannot change our defaults without breaking existing sites, we first need a way to opt-out while still being accessible. The `env(os-font-scale)` approach is a way to implement the opt-in behavior today while being backwards-compatible with future changes to the default. Developers can opt-in to text scaling with `text-size-adjust: env(os-font-scale)`, and opt-in to zooming with `text-size-adjust: none; zoom: env(os-font-scale)`.

-- 
GitHub Notification of comment by progers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2405224736 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 10 October 2024 14:18:05 UTC