Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: LayoutTests/printing/print-media-recalc.html

Issue 283333005: Use RecalcStyleDeferred for printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/printing/print-media-recalc-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/printing/print-media-recalc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698