Skip to content

Commit

Permalink
If there's column flex specific breaking info, only use that.
Browse files Browse the repository at this point in the history
Don't fall back to looking for a regular early-break in the fragment
builder, as that one won't be set in such cases, resulting in
disregarding break avoidance requests.

Bug: 1381465
Change-Id: Icb4b623cf5ab2b8973804ecde294c53cda181ea4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4004707
Reviewed-by: Alison Maher <almaher@microsoft.com>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1067639}
  • Loading branch information
mstensho authored and chromium-wpt-export-bot committed Nov 4, 2022
1 parent 666ba07 commit c3c7a97
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1381465">
<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; gap:0; height:150px;">
<div style="display:flex; flex-direction:column; flex-wrap:wrap; height:250px;">
<div style="width:50px; height:100px; background:green;"></div>
<div style="width:50px; height:25px; background:green;"></div>
<div style="break-before:avoid; break-inside:avoid; width:50px; height:75px; background:green;"></div>
<div style="height:200px;"></div>
</div>
</div>
</div>

0 comments on commit c3c7a97

Please sign in to comment.