Open Bug 1841092 Opened 2 years ago Updated 2 years ago

Line height of default font (Times) shrinks when zooming to 110%

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 116
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:

  1. 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)
  2. Make sure that zoom level is 100%
  3. 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.

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.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

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?

Flags: needinfo?(jfkthame)

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.

Flags: needinfo?(jfkthame)
See Also: → 832313

(Managed to get my hands on a M1 MacBook Air, confirming on Fx 115)

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.