I can not find documentation about this error, but it is definitely a mistake, no doubt.
Your code will be perfectly implemented in browsers other than Webkit (I assume that Safari does the same) and displays well on the screen, and then goes to the magic jar of failure when you click on print, right? What kind of guy to do?
Answer, give the HTML and BODY tags a certain height in the "actual" dimension, not percentages:
html, body { margin: 0; padding: 0; height: 880px; } div.sayfa { height: 33%; }
Pages print the same from Firefox 14 and Chrome 19+ using the styles above.
My experiments gave a printed page with a height of 880 pixels for the printer that we used, your mileage will probably be different. EMs work too, but it caused too many headaches, so I believe that the final pixel value will work best.
This is a dirty workaround, but at least it really works.
source share