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

Unified Diff: third_party/WebKit/LayoutTests/printing/multicol-2-pages-expected.html

Issue 1492143002: Add support for printing multicol containers, and enable it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years 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/multicol-2-pages-expected.html
diff --git a/third_party/WebKit/LayoutTests/printing/multicol-2-pages-expected.html b/third_party/WebKit/LayoutTests/printing/multicol-2-pages-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..d0d8bd8ba1c2b1989de27990afae4f5688833977
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/multicol-2-pages-expected.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<style>
+ .fakeColumn { float:left; width:200px; }
+ .fakeColumn:not(:first-child) { padding-left:4px; }
+ .fakeColumn:not(:last-child) { border-right:3px solid hotpink; padding-right:4px; }
+</style>
+<script>
+if (window.testRunner)
+ testRunner.setPrinting();
+if (window.internals)
+ internals.settings.setShouldPrintBackgrounds(true);
+</script>
+<!-- TODO(mstensho): Try to come up with something that doesn't make assumptions about page
+ height. Currently, there's no way of specifying it for layout tests. This test currently
+ assumes that 5 lines will fit in each column on the first page, and the remaining ones on the
+ next page. -->
+<p>There should be three columns in this document - on this page, and on the next page. The numbers
+ should be in ascending order when reading columns from left to right, page by page.</p>
+<div style="width:622px; font-size:112px; background:papayawhip;">
+ <div>
+ <div class="fakeColumn">
+ 01<br>
+ 02<br>
+ 03<br>
+ 04<br>
+ 05<br>
+ 16<br>
+ 17<br>
+ 18<br>
+ </div>
+ <div class="fakeColumn">
+ 06<br>
+ 07<br>
+ 08<br>
+ 09<br>
+ 10<br>
+ 19<br>
+ 20<br>
+ 21<br>
+ </div>
+ <div class="fakeColumn">
+ 11<br>
+ 12<br>
+ 13<br>
+ 14<br>
+ 15<br>
+ 22<br>
+ 23<br>
+ </div>
+ </div>
+ <div style="clear:both;"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698