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

Unified Diff: LayoutTests/fast/multicol/newmulticol/balance-images.html

Issue 16943008: Column balancing support in the region based multicol implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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/fast/multicol/newmulticol/balance-images-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/newmulticol/balance-images.html
diff --git a/LayoutTests/fast/multicol/newmulticol/balance-images.html b/LayoutTests/fast/multicol/newmulticol/balance-images.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ae8fafc916d6d0418dec306ac3a50ee30dcd2a6
--- /dev/null
+++ b/LayoutTests/fast/multicol/newmulticol/balance-images.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>balancing multicol with max-height</title>
+ <script src="../../js/resources/js-test-pre.js"></script>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ if (window.internals)
+ internals.settings.setRegionBasedColumnsEnabled(true);
+ </script>
+ <style>
+ img { display:block; height:123px; }
+ </style>
+ </head>
+ <body>
+ <p>There should be a 2 by 2 image grid below.</p>
+ <div id="mc" style="-webkit-columns:3; columns:3; orphans:1; widows:1; color:olive; background:olive;">
+ <img src="../resources/ipad.jpg">
+ <img src="../resources/ipad.jpg">
+ <img src="../resources/ipad.jpg">
+ <img src="../resources/ipad.jpg">
+ </div>
+ <script>
+ shouldBe("mc.offsetHeight", "246");
+ shouldBe("document.documentElement.scrollWidth", "document.documentElement.clientWidth");
+ </script>
+ <script src="../../js/resources/js-test-post.js"></script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/newmulticol/balance-images-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698