Line height of default font (Times) shrinks when zooming to 110%
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: sime.vidas, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
- Open https://bug-258619-attachments.webkit.org/attachment.cgi?id=466843 in desktop Firefox (I borrowed the test page from an unrelated WebKit bug; the content on that test page is not important for this bug)
- Make sure that zoom level is 100%
- Zoom in to 110%
Actual results:
The line heights got smaller. As a result the entire page becomes less tall. In my case, the height of <body> decreased from 168.6px to 144.6px.
I’m reporting this because it’s unexpected behavior. When users zoom in, they expect things to grow. In the case of the default font on macOS (Times), because the line heights shrink at 110%, the zoom appears to not be working correctly. This may confuse users.
Consider switching the default font to Times New Roman, which does not have this issue.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
Hm. I don't have a Mac to reproduce, apart from the fact that on Ubuntu 22.04 and Windows 10, at 110% zoom, <body> height does indeed grow from that of 100%.
:jfkthame, do you think this is something font heuristics related?
Comment 3•2 years ago
|
||
This looks like a manifestation of the issue discussed in bug 832313; there's some weirdness in how "normal" line-height gets resolved, depending on details of the font metrics.
Comment 4•2 years ago
|
||
(Managed to get my hands on a M1 MacBook Air, confirming on Fx 115)
Description
•