Files
firefox/testing/web-platform/tests/css/css-break/float-inside-small-block.html
Morten Stenshorne ebbf0eaf24 Bug 1645980 [wpt PR 24163] - [LayoutNG] Blocks with no same-flow breaks have perfect break appeal., a=testonly
Automatic update from web-platform-tests
[LayoutNG] Blocks with no same-flow breaks have perfect break appeal.

We used to only update the appeal of breaking inside a box when
inserting an in-flow break, either before/inside an in-flow child, or
inside the box itself (if its non-auto remaining block-size was too
large to fit).

What was missing was when the box itself could fit, and it only had
parallel flow breaks.

Without this fix, if a float broke inside a block, and the block itself
didn't need a break for its own sake, we'd consider the break inside to
be a last-resort break (so that we'd try our best to break earlier).

Bug: 829028
Change-Id: I5cd5f05ea319a75186c7510bf40dd54b104160b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2245911
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#779244}

--

wpt-commits: 6e8cf634241a641aadd39d02a291e7642ba2f248
wpt-pr: 24163
2020-06-23 11:04:30 +00:00

15 lines
747 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
<link rel="help" href="https://www.w3.org/TR/css-break-3/#parallel-flows">
<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:2; column-fill:auto; column-gap:0; width:180px; height:100px; background:red;">
<div style="height:30px; background:green;"></div>
<div>
<div style="float:left; width:10px; height:170px; background:green;"></div>
<div style="height:30px; background:green;"></div>
</div>
<div style="height:40px; background:green;"></div>
<div style="height:100px; background:white;"></div>
</div>