VW units are supposed to be based on the width of the initial containing block (which is divided into 100 VW units). But when printed, the ICB is the page area (the printable area of the piece of paper). Webkit seems to be using the width of the window on the monitor instead as its reference for print VWs. What's more, it does this even when the page is inside an iframe: it uses the width of the outer window instead of the width of the iframe. 1VW should instead be 1/100 of the print area of the page.
Correction: 1VW should instead be 1/100 of the WIDTH of the print area of the page.
Created attachment 234476 [details]
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.