Skip to content

Commit

Permalink
Report space shortage when aborting inner multicol layout.
Browse files Browse the repository at this point in the history
We need to detect space shortage when adding (monolithic) content that
overflows the fragmentainer, and be sure to report this when we abort.

Bug: 1308024
Change-Id: I1dde2b1b5bef519ccc07d1c1e0dcfad357a642ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3571865
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/main@{#989632}
  • Loading branch information
mstensho authored and chromium-wpt-export-bot committed Apr 6, 2022
1 parent a3f4e86 commit c885424
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions css/css-multicol/multicol-fill-balance-022.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
<link rel="help" href="https://www.w3.org/TR/css-multicol-1/#cf">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1308024">
<div id="outer" style="columns:2;">
<div id="inner" style="columns:2; border-top:solid 3px;">
<div style="height:97px; contain:size;"></div>
</div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
assert_equals(outer.offsetHeight, 100);
}, "Nested balancing outer height");
test(()=> {
assert_equals(inner.offsetHeight, 100);
}, "Nested balancing inner height");
</script>

0 comments on commit c885424

Please sign in to comment.