Print fonts are significantly smaller than other browsers when using a fixed-width container

Originator:cvrebert
Number:rdar://19435018 Date Originated:09-Jan-2015
Status:Open Resolved:
Product:Safari Product Version:8.0 (10600.1.25)
Classification:Other Bug Reproducible:Always
 
Summary:
When printing a webpage that uses a fixed-width container in Safari, the apparent font size in the output is significantly smaller when compared to printed versions of the same webpage from other browsers.

Steps 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 Results:
Disregarding margins and margin-related scaling, Safari's PDF should look nearly the same as the other browsers' PDFs.

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

Version:
Safari 8.0 (10600.1.25)
OS X Yosemite

Notes:
Adding
  .container {
    width: auto !important;
  }
seems to make Safari scale the page closer to how the other browsers scale it.

WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=138192
Original Bootstrap issue: https://github.com/twbs/bootstrap/issues/14868

Configuration:


Attachments:
'printouts.png' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!