fune/testing/web-platform/tests/css/css-multicol/spanner-fragmentation-009.html
Morten Stenshorne 0d29d189d0 Bug 1700231 [wpt PR 28180] - Deduplicate code for break-after and break-before propagation., a=testonly
Automatic update from web-platform-tests
Deduplicate code for break-after and break-before propagation.

Move it into MovePastBreakpoint(), so that all algorithms get this for
free. I realized that this actually fixes a bug with break-before on
first-child spanners in nested multicol, so wrote a few tests. Decided
to add similar break-after tests as well, and discovered that this still
fails, and it's not a new bug. Filed bug 1191124 for this.

Bug: 829028,1191124
Change-Id: I5cac425979adcad7cc88e136601e5edecfd976fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2780651
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#865568}

--

wpt-commits: 7c810670385e8bf8228463bcb1bbfba384ee03eb
wpt-pr: 28180
2021-03-27 17:41:09 +00:00

14 lines
773 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#spanning-columns">
<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-propagation">
<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-fill:auto; column-gap:0; height:300px;">
<div style="height:100px; background:green;"></div>
<div style="columns:2; border:20px solid green;">
<div style="column-span:all; break-before:column; height:60px; background:green;"></div>
</div>
</div>
</div>