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

@davidsgrogan That explainer is _amazing_. Can we publish it as a Note or something?
(btw: your `@media` code example seems to be missing something)

Pretty much all of the examples you're showing use `calc(100% * env(preferred-text-scale))`. It seems like it would make sense to introduce `env(preferred-text-size)` so authors don't have to type out the `calc()`?

Lastly, I'm intrigued by @frivoal's suggestion, since it would neatly solve the `@media` use cases as well as plugging into the cited advantages of the "initial font size" alternative. I'm not generally a fan of viewport-meta stuff, but in this case it might be worth it: the developer experience would be a lot more consistent, with fewer things to learn and juggle, if we can enable the font sizing system that CSS was originally designed to have.

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


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

Received on Tuesday, 27 May 2025 21:44:20 UTC