Files
sousa-gecko/testing/web-platform/tests/css/css-break/trailing-child-margin-003.html
T
Morten Stenshorne 1cc9aadfc1 Bug 2014174 [wpt PR 57536] - Don't prevent margin propagation from descendants after a break., a=testonly
Automatic update from web-platform-tests
Don't prevent margin propagation from descendants after a break.

Margins from descendants of a same-formatting-context block container
with no trailing padding/border should only stop propagating if the
container has a definitive block-size, or if its intrinsic block-size
differs from its final size (can be caused by e.g. min-block-size). Our
check for the latter part here was wrong: The final block-size included
the total of all fragments, whereas the intrinisic block-size part was
only for the last fragment.

Bug: 382291462
Change-Id: I9fd62995beafcf18070fbf33bec5060a222f3fbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7531946
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Auto-Submit: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1578744}

--

wpt-commits: 70bdf9ba08b81deafc07aee3e4ca4a093b50900e
wpt-pr: 57536
2026-02-05 18:16:24 +00:00

15 lines
717 B
HTML

<!DOCTYPE html>
<title>Block-end margin on descendant after fragmentainer break</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://issues.chromium.org/issues/382291462">
<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; height:100px; background:red;">
<div style="float:left; width:100%; height:175px; background:green;"></div>
<div style="height:75px;"></div>
<div>
<div style="height:50px; margin-bottom:50px;"></div>
</div>
<div style="height:25px; background:green;"></div>
</div>