You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Multicolumn] Guard against zero or negative space shortage
[Multicolumn] Guard against zero or negative space shortage
https://bugs.webkit.org/show_bug.cgi?id=250282
Reviewed by Alan Baradlay.
Merge - https://src.chromium.org/viewvc/blink?view=revision&revision=174088
We need positive values in order to get anywhere when stretching columns
in order to balance them, and we may get called with zero or negative
values when there's zero-height content at column boundaries, so we
set an early break in order to honor widows in the next column.
* Source/WebCore/rendering/RenderMultiColumnFlow.cpp:
(RenderMultiColumnFlow::initialLogicalWidth): Add early return for "spaceShortage" to get positive values
* LayoutTests/fast/multicol/windows.html: Add Test Case
* LayoutTests/fast/multicol/windows2.html: Ditto
* LayoutTests/fast/multicol/windows-expected.txt: Add Test Case Expectation
* LayoutTests/fast/multicol/windows2-expected.txt: Ditto
Canonical link: https://commits.webkit.org/258647@main
description("Test column balancer behavior when widows requirements are high, and there are so many lines that there's no need for early breaks to honor widows");
5
+
</script>
6
+
<p>There should be 6 lines in the first column, 5 in the second and 5 in the last one.</p>
0 commit comments