Bug 1768224 [wpt PR 33967] - Calculate legend block-size contribution consistently...
commit6b6417b66c40c6daa778bffc79817db24433589c
authorMorten Stenshorne <mstensho@chromium.org>
Sun, 8 May 2022 17:53:13 +0000 (8 17:53 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 15 May 2022 20:20:51 +0000 (15 20:20 +0000)
treeea7346a32ff6ae6789c8b5169bb2f77891567471
parent5623e36e6a8a2d9ff5eae50542f2fe93628b7c7f
Bug 1768224 [wpt PR 33967] - Calculate legend block-size contribution consistently., a=testonly

Automatic update from web-platform-tests
Calculate legend block-size contribution consistently.

For fragmentation, if we were resuming layout after a break, we used to
calculate it based on the consumed block-size stored in the break token
of the fieldset itself and the break token of the anonymous content
wrapper child. Turns out it's too hard to get this right. For instance,
if the contents wrapper breaks before the fragmentation line, due to
tall trailing padding, we'd get this wrong (and count the "pagination
strut" as part of the legend block-size contribution).

So here's a solution to that: store the block-size contribution in the
break token.

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

--

wpt-commits: 6c9f7ead6913fb4de763dbd620b290bd86e2cc4c
wpt-pr: 33967
testing/web-platform/tests/css/css-multicol/crashtests/nested-multicol-fieldset-tall-trailing-padding.html [new file with mode: 0644]