Bug 1755595 [wpt PR 32852] - [FlexNG] Support forced break-before/after for flex...
commit4c593af06f4e4bac6a439fdaa7314c8e7cb95afb
authorAlison Maher <almaher@microsoft.com>
Fri, 18 Mar 2022 10:21:54 +0000 (18 10:21 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 21 Mar 2022 06:49:55 +0000 (21 06:49 +0000)
tree44f5323f1bcf14b5b12396c9e49596581d94581e
parent3dcb7013ab148023d26ce0423c08653c4d9032a6
Bug 1755595 [wpt PR 32852] - [FlexNG] Support forced break-before/after for flex rows, a=testonly

Automatic update from web-platform-tests
[FlexNG] Support forced break-before/after for flex rows

This CL adds basic support for break-before/after for flex rows.
Similar to CL:3287251, we store the BreakBetween value of each row
on the break token (with the last BreakBetween value representing
the final break-after to be propagated to the container).

BreakBeforeRowIfNeeded() was added to determine whether or not to
break before a given row. If we decide to break before a row, we will
add a break before the first item in that row (since rows themselves
don't produce a layout result).

More complex scenarios will be supported in follow-ups (as well as
break-before/after:avoid).

Propagation of the initial row break-before and final row break-after
to the container will also be done in a follow-up CL.

Bug: 660611
Change-Id: Ib5f04916d8119cb28dd4d5388af7a3101e894285
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3466756
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#971960}

--

wpt-commits: da20ac8830b5005bb8e04b3a536e0a55d9c3d22c
wpt-pr: 32852
testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-022.html [new file with mode: 0644]
testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-023.html [new file with mode: 0644]
testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-024.html [new file with mode: 0644]