WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
287549
REGRESSION (Safari 18.2): CSS rem font-size in clamp not working when page is zoomed
https://bugs.webkit.org/show_bug.cgi?id=287549
Summary
REGRESSION (Safari 18.2): CSS rem font-size in clamp not working when page is...
sandra.k.lindberg
Reported
2025-02-12 00:03:09 PST
There’s an accessibility issue in Safari 18.2, it’s still present in Safari 18.3 but it was not present in Safari 18.1 and earlier (17.3). When font-size is set with clamp in CSS, e.g. font-size: clamp(10px, 1rem, 24px) the text becomes smaller as the user zooms the page. Increased percentage of zoom makes the font-size decrease more (text in 175% zoom i smaller than in 125% zoom). If font-size is changed to font-size: 1rem, without clamp, the rem unit works as expected, even when page is zoomed. At 100% zoom, Safari seems to be able to understand rem inside clamp.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-02-12 00:03:21 PST
<
rdar://problem/144676340
>
Simon Fraser (smfr)
Comment 2
2025-02-13 13:41:56 PST
Is this
https://bugs.webkit.org/show_bug.cgi?id=285914
?
sandra.k.lindberg
Comment 3
2025-02-14 03:37:41 PST
The difference is that I encountered the bug with `clamp` and not `calc`, but I can reproduce the calc issue and it behaves the same way as the clamp issue. So if `tryMakeCanonical` applies to clamp in the same way as it does for calc, then this is probably already solved. However, as there are no tests for `clamp(...)` in
https://commits.webkit.org/289030@main
so I'm not 100% sure.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug