Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=314969 (#60073) -- wpt-commits: 3a1ecec2ee45a5de8838954b88121d0a1851a7db wpt-pr: 60073
18 lines
916 B
HTML
18 lines
916 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Test: nested spans with block-in-inline preserve margin behavior</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="nested-spans-with-block-in-inline-margin-ref.html">
|
|
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
|
|
<meta name="assert" content="A block inside multiple nested inlines has the same margin behavior as a flat block sibling.">
|
|
<style>
|
|
.container { width: 100px; font: 20px/1 Ahem; }
|
|
.first { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
|
|
.second { width: 100px; height: 20px; background: green; }
|
|
</style>
|
|
<p>Two green squares separated by a 40px gap.</p>
|
|
<div class="container">
|
|
<span><span><span><div class="first"></div></span></span></span>
|
|
<div class="second"></div>
|
|
</div>
|