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

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: final code review 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..d58007a2a69858d94480a0e3c9613289a4ccc846
--- /dev/null
+++ b/LayoutTests/fast/multicol/span/preferred-widths-with-column-content.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+ onload = function() { checkLayout('#stf'); }
+</script>
+<p>Test that a spanner contributes to the maximum preferred width of a multicol container.</p>
+<p>Below there should be a blue square.</p>
+<div id="stf" style="width:-webkit-max-content;" data-expected-width="160" data-expected-height="160">
+ <div style="-webkit-columns:4; -webkit-column-gap:0; font:20px/1 Ahem; color:blue; background:blue;">
+ X<br>X<br>X<br>X<br>
+ X<br>X<br>X<br>X<br>
+ <div style="-webkit-column-span:all;">
+ 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>

Powered by Google App Engine
This is Rietveld 408576698