Bug 165600

Summary: font-size computed is influenced by CSS zoom property when zoom < 1
Product: WebKit Reporter: Antoine Quint <graouts>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: dino, graouts, hyatt, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 10   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase none

Antoine Quint
Reported 2016-12-08 07:25:57 PST
Created attachment 296510 [details] Testcase In the attached tests, I have two elements displaying text with "font-size" set to "14px" and "zoom" property set. The element that has "zoom" set to 4 reports a font-size of "14px" in its computed style, while the element that has "zoom" set to 0.25 reports a font-size of "36px". I would expect 14px to reported in both cases.
Attachments
Testcase (430 bytes, text/html)
2016-12-08 07:25 PST, Antoine Quint
no flags
Radar WebKit Bug Importer
Comment 1 2017-02-26 17:08:04 PST
Dave Hyatt
Comment 2 2017-04-24 12:39:06 PDT
Issue is minimum font size increased the font back up to 9px, so when we try to reverse engineer the original font size by dividing by the zoom, we get the wrong answer.
Note You need to log in before you can comment on or make changes to this bug.