Summary: | vw units don't look at the right viewport in print media | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Brad <brkemper> | ||||||||
Component: | Printing | Assignee: | Benjamin Poulain <benjamin> | ||||||||
Status: | NEW --- | ||||||||||
Severity: | Major | CC: | ahmad.saleem792, ap, benjamin, bfulgham, brkemper, dbates, dino, dwaal, hi, hyatt, jtherrien2020, koivisto, simon.fraser, webkit-bug-importer, webkit, zalan | ||||||||
Priority: | P2 | Keywords: | HasReduction, InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Mac | ||||||||||
OS: | OS X 10.11 | ||||||||||
URL: | http://output.jsbin.com/duyosa/1/quiet | ||||||||||
Attachments: |
|
Description
Brad
2014-01-07 12:56:51 PST
Correction: 1VW should instead be 1/100 of the WIDTH of the print area of the page. Created attachment 234476 [details]
Patch
Dave, Antti, Dean, could you please have a look at this first patch? I need to add tests and fix the exports, but I would like some early feedback. Something I know nothing about is the other type of pagination. I have no idea how the layout works for epub or paginated UIWebView. Not sure if this is related, but if font-size is set with vw it will not be printed at all in a webkit browser. (In reply to comment #4) > Not sure if this is related, but if font-size is set with vw it will not be > printed at all in a webkit browser. That sounds like https://code.google.com/p/chromium/issues/detail?id=382313 Still reproduces in recent Nightly. Created attachment 462057 [details]
Safari Technology Preview 152 Print in PDF
Created attachment 462058 [details]
Chrome Canary 107 Print Output
It is same for Firefox Nightly 106.
I am able to reproduce this bug in STP 152 and please refer to attached PDF for reference. Thanks! |