Bug 138192

Summary: Print fonts significantly smaller than other browsers when using fixed-width container
Product: WebKit Reporter: Chris Rebert <webkit>
Component: PrintingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, hnrch02+webkit, hyatt, mehmetgelisin, simon.fraser, zalan
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.10   
URL: http://jsbin.com/tuxos/2
Bug Depends on:    
Bug Blocks: 159753    
Description Flags
Screenshot demonstrating scaling (or font size?) difference
Copy of JS Bin example none

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.

  .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