Bug 1738429 [wpt PR 31436] - Include block-start ruby annotations when block-fragment...
commit085c4e524eb90641eeafb932e3d4d569d8664543
authorMorten Stenshorne <mstensho@chromium.org>
Tue, 2 Nov 2021 21:44:52 +0000 (2 21:44 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 3 Nov 2021 07:49:53 +0000 (3 07:49 +0000)
treeccb1c7857335e9a3457cdfb49fccff56b5fac3be
parenta96b13650ab418465637e94bd1128307fc58647b
Bug 1738429 [wpt PR 31436] - Include block-start ruby annotations when block-fragmenting., a=testonly

Automatic update from web-platform-tests
Include block-start ruby annotations when block-fragmenting.

The block-offset of a line box with ruby annotations may have been
increased to make room for the annotations above. Take this into account
when determining whether to break before a line. If the line (including
ruby annotations) is at the block-start of the fragmentainer, we cannot
break before it, as that would prevent content progress, and we'd get
stuck in an infinite loop, retrying to place the line in subsequent
fragmentainers, when the fragmentainers aren't tall enough.

This fixes external/wpt/css/css-ruby/block-ruby-001.html when
LayoutNGBlockFragmentation is enabled. Used to freeze.

Bug: 1253341
Change-Id: I14a5eee3f3b4da6a9bcd5efc664344354755ed55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3250830
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#937228}

--

wpt-commits: c10c757d4f95ed663dd6d8a58d1f33b0e4ee3a98
wpt-pr: 31436
testing/web-platform/tests/css/css-break/ruby-003.html [new file with mode: 0644]