WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 275399
252075
Zoom level factored into computed value of lh (line-height) unit used in CSS gradient
https://bugs.webkit.org/show_bug.cgi?id=252075
Summary
Zoom level factored into computed value of lh (line-height) unit used in CSS ...
Dan
Reported
2023-02-10 14:09:24 PST
Created
attachment 464947
[details]
A demonstration of how 1lh changes as you zoom in and out of the page When used in a linear-gradient() CSS image, the computed value of `1lh` incorrectly changes based on zoom level. In the attached test case, the paragraph has these styles: p { line-height: 1.3; font-size: 20px; padding: 1lh; margin: 1lh; border: 1px solid; background-image: linear-gradient( transparent 0 1lh, #fc0 1lh 2lh, transparent 2lh 100% ); } Zooming in and out of the page, the `margin` and `padding` are computed to `26px`, but the background image that highlights the first line of the paragraph gets out of sync. The issue is not present in Chrome 109+.
Attachments
A demonstration of how 1lh changes as you zoom in and out of the page
(913 bytes, text/html)
2023-02-10 14:09 PST
,
Dan
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-02-13 01:41:58 PST
<
rdar://problem/105383208
>
Fujii Hironori
Comment 2
2024-07-22 23:37:14 PDT
This bug seems to be aleady fixed by someone.
280062@main
bad
280183@main
good
Fujii Hironori
Comment 3
2024-07-22 23:38:05 PDT
Likely
280120@main
*** This bug has been marked as a duplicate of
bug 275399
***
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