fune/testing/web-platform/tests/css/css-break/parallel-flow-trailing-margin-002.html
Morten Stenshorne 28911ca45a Bug 1798035 [wpt PR 36719] - Truncate margin struts in parallel flows., a=testonly
Automatic update from web-platform-tests
Truncate margin struts in parallel flows.

We used to let trailing margins from content inside a node past its
block-end affect the positioning of resumed content in the main flow.
This looked ridiculous, and was even dangerous in some cases: if a
resumed (non-formatting-context-establishing) block container got pushed
down when resuming, we'd abort layout with kBfcBlockOffsetResolved,
which would trigger removal of all previous layout results in
NGBlockNode::FinishLayout(), which in turn would eventually end in
invalid Vector operations, since we used to have a result there from a
previous fragmentainer that should have been left alone.

Bug: 1378039
Change-Id: Ib215e16acfcdfed1ed2e9b08c750cb12a3de3ec2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3991011
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1065409}

--

wpt-commits: cd12a2545b4dbca308b524295cb227ac3a0ae3ab
wpt-pr: 36719
2022-11-11 12:32:55 +00:00

12 lines
662 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1378039">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="columns:2; gap:0; width:100px; column-fill:auto; height:100px; background:red;">
<div style="max-height:0;">
<div style="height:150px; contain:size;"></div>
<div style="display:flow-root; margin-bottom:80px;"></div>
</div>
<div style="display:flex; height:200px; background:green;"></div>
</div>