Skip to content

Commit

Permalink
[LayoutNG] Add column balancing test with break-before:avoid
Browse files Browse the repository at this point in the history
Add test that would fail without the call to PropagateSpaceShortage()
in AttemptSoftBreak().

Bug: 829028
Change-Id: Ida35140bc73535f05ae343700ee6c911c42271f5
  • Loading branch information
alisonmaher authored and chromium-wpt-export-bot committed Feb 24, 2022
1 parent aac1ad2 commit 2e8c545
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions css/css-multicol/balance-break-avoidance-002.html
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#filling-columns">
<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-between">
<link rel="help" href="https://www.w3.org/TR/css-break-3/#break-within">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; columns:2; column-gap:0; background:green;">
<div style="height:25px;"></div>
<div style="height:50px;"></div>
<div style="height:25px; break-before:avoid;"></div>
<div style="height:50px;"></div>
</div>

0 comments on commit 2e8c545

Please sign in to comment.