Closed Bug 1729891 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 30419 - Avoid suboptimal breaks inside a column row when appropriate.

Categories

(Core :: Layout: Columns, task, P4)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 30419 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/30419
Details from upstream follow.

b'Morten Stenshorne <mstensho@chromium.org>' wrote:

Avoid suboptimal breaks inside a column row when appropriate.

Set a minimum appeal for breaks inside a nested multicol container, if
the row is past the block-start of the outer fragmentainer. If there's
content that breaks suboptimally (with a lower appeal than any previous
breaks), push such content ahead of us, so that it ends up in the next
outer fragmentainer. There may be more space there, so that the
suboptimal break may be avoided.

Propagate the lowest appeal among all column breaks to the multicol
fragment builder, so that an ancestor can decide to break before the
entire multicol container, if that would be better. This currently only
works if the multicol container itself breaks, since break appeal is
stored in the break tokens. A follow-up CL will fix this (by storing it
in NGLayoutResult instead), so that we'll also detect suboptimal breaks
inside a nested multicol container that didn't break in the outer
fragmentation context.

This doesn't fix any existing tests by itself, but will contribute to
it. A follow-up CL will fix some remaining problems, so that quite a few
existing tests will finally pass.

Bug: 829028
Change-Id: I4a09e2163aa194780be986f358283d4e8da9a115
Reviewed-on: https://chromium-review.googlesource.com/3149995
WPT-Export-Revision: 7dbee704adfb150f40dd78f76daecf5b5855f517

Component: web-platform-tests → Layout: Columns
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e9b6122764d2
[wpt PR 30419] - Avoid suboptimal breaks inside a column row when appropriate., a=testonly
https://hg.mozilla.org/integration/autoland/rev/780cf1dbd38d
[wpt PR 30419] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.