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

Unified Diff: LayoutTests/fast/multicol/span/preferred-widths-with-column-content.html

Issue 879483002: [New Multicolumn] Intrinsic/preferred logical width calculation for spanners. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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: LayoutTests/fast/multicol/span/preferred-widths-with-column-content.html
diff --git a/LayoutTests/fast/multicol/span/preferred-widths-with-column-content.html b/LayoutTests/fast/multicol/span/preferred-widths-with-column-content.html
new file mode 100644
index 0000000000000000000000000000000000000000..6d93ebf4ece69f4a46d7bf1052405b9f59b7b36c
--- /dev/null
+++ b/LayoutTests/fast/multicol/span/preferred-widths-with-column-content.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+ onload = function() { checkLayout('#stf', document.getElementById('result')); }
+</script>
+<p>Test that a spanner contributes to the maximum preferred width of a multicol container.</p>
+<p>Below there should be a green square.</p>
+<div id="stf" style="float:left;" data-expected-width="160" data-expected-height="160">
+ <div style="-webkit-columns:4; -webkit-column-gap:0; font:20px/1 Ahem; color:green; background:green;">
+ X<br>X<br>X<br>X<br>
+ X<br>X<br>X<br>X<br>
+ <div style="-webkit-column-span:all; background:green;">
+ XXXX XXX
+ </div>
+ X<br>X<br>X<br>X<br>
+ X<br>X<br>X<br>X<br>
+ X<br>X<br>X<br>X<br>
+ X<br>X<br>X<br>X<br>
+ X<br>X<br>X<br>X<br>
+ </div>
+</div>
+<p id="result" style="clear:both;"></p>

Powered by Google App Engine
This is Rietveld 408576698