1166147-ref.html (1673B)
1 <!DOCTYPE html> 2 <!-- 3 This test passes if the pages generated are identical for both vertical-lr and 4 horizontal-tb writing-modes by means of making the size of the content we are 5 printing equal to exactly the same number of pages being generated in each 6 writing mode. 7 This sizing is calculated like so: 8 9 1. It is important to note that irrespective of the writing-mode, the print 10 UI always lays out printed pages vertically. Therefore, it is possible 11 to equate the printed content of two different writing modes if both 12 cases generate the exact same number of pages (and of course no text on 13 the pages, which is why we use background color since it is independent 14 of writing mode). 15 2. To avoid an unnecessary vertical scrollbar (since scrolled content will be 16 clipped anyway in the reftest snapshot), the maximum number of 5X3in pages 17 that we should generate for the reftest snapshot are equal to 3. 18 3. Considering a margin of 0.5in on each side of the 5X3in page, we get the 19 size of the page content area to be 4X2in per page and to generate exactly 3 20 printed pages from this in horizontal-tb writing mode, we need a printable 21 area of 4X6in (as used below). 22 23 Similarly, the size for the test case printable area is calculated, only 24 considering a vertical-rl writing mode. 25 26 It is important to note here that when printing this test outside of the test 27 harness, the background color will not show since we omit printing and 28 previewing of background colors by default via the browser printing path. 29 --> 30 <html class="reftest-paged"> 31 <body style="margin:0;"> 32 <div style="background: teal; width:4in; height:6in;"> 33 </div> 34 </body> 35 </html>