Bug 138192 - Print fonts significantly smaller than other browsers when using fixed-width container
Summary: Print fonts significantly smaller than other browsers when using fixed-width ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.10
: P2 Normal
Assignee: Nobody
URL: http://jsbin.com/tuxos/2
Keywords: HasReduction, InRadar
Depends on:
Blocks: 159753
  Show dependency treegraph
 
Reported: 2014-10-29 15:51 PDT by Chris Rebert
Modified: 2021-09-11 10:58 PDT (History)
6 users (show)

See Also:


Attachments
Screenshot demonstrating scaling (or font size?) difference (376.69 KB, image/png)
2014-10-29 15:51 PDT, Chris Rebert
no flags Details
Copy of JS Bin example (2.84 KB, text/html)
2015-05-06 12:14 PDT, Chris Rebert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rebert 2014-10-29 15:51:47 PDT
Created attachment 240634 [details]
Screenshot demonstrating scaling (or font size?) difference

Original Bootstrap issue: https://github.com/twbs/bootstrap/issues/14868

To reproduce:
1. Open http://jsbin.com/tuxos/2 in Safari 8.0 (10600.1.25) on OS X Yosemite
2. File->Print
3. Set "Paper Size" to "US Letter"
4. Ensure that "Scale" is set to "100%"
5. PDF->Open PDF in Preview
6. Compare the resulting PDF to those produced by Chrome's or Firefox's print features.

Expected Result:
Disregarding margins and margin-related scaling, Safari's PDF should look nearly the same as the other browsers' PDFs.

Actual Result:
Due to page scaling (or font size adjustment?), the apparent font size in Safari's PDF is significantly smaller compared to the other browsers.


Adding
  .container {
    width: auto !important;
  }
seems to make Safari scale the page closer to how the other browsers scale it.
Comment 1 Chris Rebert 2014-10-30 01:29:52 PDT
(Caption on right Firefox PDF in screenshot should say "enabled" instead of "disabled")
Comment 2 Chris Rebert 2015-01-09 19:38:28 PST
Have also filed this as <rdar://problem/19435018>
Comment 3 Chris Rebert 2015-05-06 12:14:21 PDT
Created attachment 252504 [details]
Copy of JS Bin example