printpreview_scale_test_002_ref.html (481B)
1 <!DOCTYPE html> 2 <head> 3 <style> 4 @page { 5 size: letter; 6 margin: 0; 7 } 8 body{ 9 margin:0; 10 } 11 div{ 12 /* A4-on-letter requires a 0.9407 downscale. 11in = 279.4mm, and 13 * 279.4mm / 297mm = 0.9407407407.. 14 * The unscaled reference case has a 200px square div, so reverse the scale 15 * to match that (rounding to 0.940741) 16 */ 17 height: calc(0.940741 * 200px); 18 width: calc(0.940741 * 200px); 19 background: blue; 20 margin: auto; 21 } 22 </style> 23 </head> 24 <body> 25 <div></div> 26 </body>