Files
sousa-gecko/testing/web-platform/tests/css/CSS2/box-display/block-in-inline-large-margin-bottom.html
T
Sammy Gill b3a340783b Bug 2041568 [wpt PR 60072] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=314978, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=314978 (#60072)
--

wpt-commits: d188b687d52c3ee8a85fbac0b349bdcdf535d9a3
wpt-pr: 60072
2026-05-29 15:58:54 +00:00

17 lines
852 B
HTML

<!DOCTYPE html>
<title>CSS Test: block-in-inline with large margin-bottom propagates correctly to next sibling</title>
<link rel="help" href="https://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level">
<link rel="help" href="https://www.w3.org/TR/CSS21/box.html#collapsing-margins">
<link rel="match" href="block-in-inline-large-margin-bottom-ref.html">
<meta name="assert" content="A block-in-inline with a large margin-bottom positions the next sibling at exactly that distance below.">
<style>
.container { width: 100px; }
.first { width: 100px; height: 10px; margin-bottom: 200px; background: blue; }
.second { width: 100px; height: 10px; background: green; }
</style>
<p>Blue rectangle, 200px gap, then green rectangle.</p>
<div class="container">
<span><div class="first"></div></span>
<span><div class="second"></div></span>
</div>