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

Unified Diff: third_party/WebKit/LayoutTests/printing/page-and-element-geometry-match.html

Issue 2116283002: Don't let rounding prematurely influence document size when printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@620456-2
Patch Set: bug 467579 Created 4 years, 4 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
Index: third_party/WebKit/LayoutTests/printing/page-and-element-geometry-match.html
diff --git a/third_party/WebKit/LayoutTests/printing/page-and-element-geometry-match.html b/third_party/WebKit/LayoutTests/printing/page-and-element-geometry-match.html
new file mode 100644
index 0000000000000000000000000000000000000000..ff027b75c9e28319842292e8d5a4e7835cae7a90
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/page-and-element-geometry-match.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="resources/paged-media-test-utils.js"></script>
+<style>
+ body,html{margin:0};
+ div{background:red};
+ div{height:50pt;width:100pt};
+ @page{margin:0; size: 100pt 50pt};
+</style>
+<div></div>
+<script>
+
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function test()
+ {
+ numberOfPagesShouldBe(1);
+ }
+
+ runPrintingTest(test);
+</script>

Powered by Google App Engine
This is Rietveld 408576698