commit 4724256be89a76d4032513947d29d273e7b6d0f6
parent 14602a04b8230e6776e6dfcc34c88d25cd778c5a
Author: Morten Stenshorne <mstensho@chromium.org>
Date: Wed, 19 Nov 2025 04:55:37 +0000
Bug 2000722 [wpt PR 56074] - Add test for column balancing and row wrapping., a=testonly
Automatic update from web-platform-tests
Add test for column balancing and row wrapping.
The spec issue has been resolved:
https://github.com/w3c/csswg-drafts/issues/11976#issuecomment-3530659488
This already matches our behavior. I.e. don't let column rows stretch
the column lines.
Bug: 403183884
Change-Id: I98ff13f336a627a91fc9f4fb4e6959569974c47f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7156853
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1546142}
--
wpt-commits: bd9e27bda1b48b11e91b4ec826766f2b52066da0
wpt-pr: 56074
Diffstat:
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-multicol/column-height-024.html b/testing/web-platform/tests/css/css-multicol/column-height-024.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<title>Column balancing, specified column-height, unused space</title>
+<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#ch">
+<link rel="help" href="https://drafts.csswg.org/css-multicol-2/#cwr">
+<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+<div style="width:100px; height:100px; background:red;">
+ <div style="columns:2; column-height:20px; column-wrap:wrap; gap:5px 0; background:green;">
+ <div style="background:red;">
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <div style="break-before:column; height:1px; background:green;"></div>
+ <!-- One more row of columns, so that the multicol container fills the
+ final row-gap, which ends at offset 100px. -->
+ <div style="break-before:column; height:40px; background:white;"></div>
+ </div>
+ </div>
+</div>