Automatic update from web-platform-tests
Clamp line cross-size to zero after fragmentation adjustment
In `GiveItemsFinalPositionAndSizeForFragmentation`, when a row flex item
breaks across a fragmentainer, we subtract the already-advanced offset
from `line_cross_size` to get the remaining cross-size for the current
fragment. When the row is bounded by the parent (e.g. max-height: 0) but
the row's stitched offset is bumped past its content size to align with
a fragmentainer break, this subtraction makes the resulting cross size
negative.
The negative value is then passed as the block available_size to
`BuildSpaceForLayout`, leading us to hit a DCHECK.
Clamp the result to zero to ensure the cross size never goes negative.
Bug: 515776659
Change-Id: Ibea3ffc5ebf2744d55bb3c10bf8a94cfa9c71a28
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7884136
Commit-Queue: Alison Maher <almaher@microsoft.com>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1639431}
--
wpt-commits: 41e6a0b9550065bb7aa16b7f85597b7ea39da925
wpt-pr: 60309