OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/js-test.js"></script> |
| 3 <style> |
| 4 @media print { |
| 5 body { font-size: 150px; } |
| 6 } |
| 7 </style> |
| 8 A<br> |
| 9 B |
| 10 <script> |
| 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. |
| 13 |
| 14 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true); |
| 15 |
| 16 if (window.internals) |
| 17 shouldBe("internals.numberOfPages(800, 200)", "2"); |
| 18 |
| 19 shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'"); |
| 20 </script> |
OLD | NEW |