Re: [csswg-drafts] [css-fonts-5] <meta text-scale> limits (#13557)

Can the text scaling limit be a value that is relative to a reference viewport width?
A value of 32px would be interpreted as 32px only on viewports of 320px wide, and scale from there with the viewport width. So a viewport of 640px wide would have a limit of 64px.

I think this could eliminate regressions on desktop as the value would become very large there. (e.g. 144px on 1440px viewports with a limit of 32px)

While still having a meaningful signal of the author intent and when a UA might want to switch to other means of magnification.

This also makes it easier for authors to use the correct techniques, and test one breakpoint at various text sizes. This is what we do in practice. We test on a viewport of 320px wide at 32px preferred font size. We do a few spot tests at larger sizes to validate our approach, but don't do as exhaustive testing as we do on 320px viewports.


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


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

Received on Thursday, 16 April 2026 10:44:40 UTC