Bug 1760616 [wpt PR 33237] - [FlexNG] Forced break detection, a=testonly
commitb3b6247144510331b184ff4e9b1c3f450351002a
authorAlison Maher <almaher@microsoft.com>
Thu, 24 Mar 2022 12:06:51 +0000 (24 12:06 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 26 Mar 2022 21:57:57 +0000 (26 21:57 +0000)
treed67b4d64f3aa9154e3ef60a4272036e4ec7454e4
parent20378124e0718c52f73b4abc407c2b4c46c1b2db
Bug 1760616 [wpt PR 33237] - [FlexNG] Forced break detection, a=testonly

Automatic update from web-platform-tests
[FlexNG] Forced break detection

We perform extra logic for forced breaks to properly handle top
margins. However, we previously looked at HasForcedBreak(),
which is also true if a descendant has a forced break.

We only want to perform this logic if the current child break was
forced. LastChildBreakToken() was added to detect this.

I also noticed that we may consider an item that had previously
broken before to have container separation because its
previous sibling had overflow. Update the container
separation logic for columns to always check if the current
item previously broke.

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

--

wpt-commits: 07201da519dd326fd7a94960cde8487a2cede780
wpt-pr: 33237
testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-037.html [new file with mode: 0644]
testing/web-platform/tests/css/css-break/flexbox/single-line-column-flex-fragmentation-038.html [new file with mode: 0644]