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

I think it's important for web developers to be able to deliver an experience tailored to a user's accessibility needs on initial load. If we can expose the os font scale factor to CSS (potentially with `env(os-font-scale)`), are all of the necessary pieces there?

Developers need to be able to 1) disable automatic adjustment and 2) apply their own adjustment. These can both be done by specifying `text-size-adjust: env(os-font-scale)`, as text-size-adjust: [percentage] disables automatic adjustment and acts like a simple multiplier on font-size. This would work the same in webview. Making `env(os-font-scale)` the default behavior of `text-size-adjust: auto` may be desirable, though more research needs to be done about whether that would be web compatible.

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


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

Received on Wednesday, 9 October 2024 00:15:11 UTC