WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
310843
lh/rlh units resolve with double-zoom when line-height is a number
https://bugs.webkit.org/show_bug.cgi?id=310843
Summary
lh/rlh units resolve with double-zoom when line-height is a number
Vitor Roriz
Reported
2026-03-26 16:03:33 PDT
When resolving lh/rlh units for evaluation-time zoom properties, the LineHeightEvaluationContext was constructed with computedFontSize(), which already includes zoom. For number line-heights, the percentage evaluation multiplies by this zoomed font size, producing a zoomed result. Evaluation-time zoom then applies zoom again at layout, causing double-zoom.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-03-26 16:03:41 PDT
<
rdar://problem/173448638
>
Vitor Roriz
Comment 2
2026-03-26 16:08:14 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/61447
EWS
Comment 3
2026-03-26 19:42:42 PDT
Committed
310043@main
(6a30457b6cca): <
https://commits.webkit.org/310043@main
> Reviewed commits have been landed. Closing PR #61447 and removing active labels.
Vitor Roriz
Comment 4
2026-03-30 11:40:45 PDT
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/58860
EWS
Comment 5
2026-03-31 00:52:33 PDT
Committed
305413.599@safari-7624-branch
(ac571b4f7f7a): <
https://commits.webkit.org/305413.599@safari-7624-branch
> Reviewed commits have been landed. Closing PR #4857 and removing active labels.
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