Index: LayoutTests/printing/print-media-recalc.html |
diff --git a/LayoutTests/printing/print-media-recalc.html b/LayoutTests/printing/print-media-recalc.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b9817825b4efc89c8d20677a3e5ba914d4efff8a |
--- /dev/null |
+++ b/LayoutTests/printing/print-media-recalc.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<script src="../resources/js-test.js"></script> |
+<style> |
+@media print { |
+ body { font-size: 150px; } |
+} |
+</style> |
+A<br> |
+B |
+<script> |
+// Check that the 150px font-size for body is applied for printing, causing |
+// room for only one line per page with a page height of 200px. |
+ |
+shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'", true); |
+ |
+if (window.internals) |
+ shouldBe("internals.numberOfPages(800, 200)", "2"); |
+ |
+shouldBe("getComputedStyle(document.body, null).fontSize", "'16px'"); |
+</script> |