Files
sousa-gecko/testing/web-platform/tests/css/css-multicol/multicol-span-float-004.html
T
Morten Stenshorne 03229d3047 Bug 1970915 [wpt PR 52998] - Correctly detect column-spanner-ness changes., a=testonly
Automatic update from web-platform-tests
Correctly detect column-spanner-ness changes.

Simply checking the column-span:all property isn't enough (e.g. removing
`float:left` from `column-span:all; float:left` may potentially turn an
object into a spanner). The check was good enough when we had a flow
thread, since then a LayoutMultiColumnSpannerPlaceholder would be
created or destroyed in such cases. But not anymore.

Add two tests. One pure crash test, and one correctness test, that
admittedly would also fail a DCHECK without this fix, but bypassing the
DCHECK would result in incorrect rendering.

Bug: 422810439
Change-Id: Idb5a90f037e33800211e1a9860265d1f39c1cda4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6624381
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1471130}

--

wpt-commits: 1290e4882c0ad2e852b77eafc74294a50cc46198
wpt-pr: 52998
2025-06-19 08:20:40 +00:00

19 lines
738 B
HTML

<!DOCTYPE html>
<title>Become a spanner without changing column-span</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://issues.chromium.org/issues/422810439">
<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="columns:1; column-fill:auto; height:100px;">
<div style="background:red;">
<div id="e3" style="float:left; column-span:all;">
<div style="width:100px; height:100px; background:green;"></div>
</div>
<div style="clear:both;"></div>
</div>
</div>
<script>
document.body.offsetTop;
e3.style.cssFloat = "none";
</script>