Bug 165600 - font-size computed is influenced by CSS zoom property when zoom < 1
Summary: font-size computed is influenced by CSS zoom property when zoom < 1
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari 10
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-12-08 07:25 PST by Antoine Quint
Modified: 2017-04-24 12:39 PDT (History)
5 users (show)

See Also:


Attachments
Testcase (430 bytes, text/html)
2016-12-08 07:25 PST, Antoine Quint
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 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.
Comment 1 Radar WebKit Bug Importer 2017-02-26 17:08:04 PST
<rdar://problem/30725497>
Comment 2 Dave Hyatt 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.