| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../resources/js-test.js"></script> | 2 <script src="../resources/js-test.js"></script> |
| 3 <style> | 3 <style> |
| 4 @media print { | 4 @media print { |
| 5 body { font-size: 150px; } | 5 body { font-size: 150px; orphans:1; widows:1; } |
| 6 } | 6 } |
| 7 </style> | 7 </style> |
| 8 A<br> | 8 A<br> |
| 9 B | 9 B |
| 10 <script> | 10 <script> |
| 11 // Check that the 150px font-size for body is applied for printing, causing | 11 // Check that the 150px font-size for body is applied for printing, causing |
| 12 // room for only one line per page with a page height of 200px. | 12 // room for only one line per page with a page height of 200px. |
| 13 | 13 |
| 14 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true); | 14 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true); |
| 15 | 15 |
| 16 if (window.internals) | 16 if (window.internals) |
| 17 shouldBe("internals.numberOfPages(800, 200)", "2"); | 17 shouldBe("internals.numberOfPages(800, 200)", "2"); |
| 18 | 18 |
| 19 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'"); | 19 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'"); |
| 20 </script> | 20 </script> |
| OLD | NEW |