Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/CSS2/box-display/block-in-inline-followed-by-empty-span.html
<!DOCTYPE html> <title>CSS Test: block-in-inline followed by trailing empty inline does not inflate parent</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/visuren.html#phantom-line-box"> <link rel="match" href="block-in-inline-followed-by-empty-span-ref.html"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <meta name="assert" content="A trailing empty inline after a block-in-inline does not separate margins; the block's margin-bottom propagates out of the parent."> <style> .parent { width: 100px; font: 20px/1 Ahem; } .inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; } .sibling { width: 100px; height: 20px; background: green; } </style> <p>Two green squares separated by a 40px gap (trailing empty span ignored).</p> <div class="parent"> <span><div class="inner"></div></span><span></span> </div> <div class="sibling"></div>
/css/CSS2/box-display/block-in-inline-followed-by-empty-span-ref.html
<!DOCTYPE html> <title>CSS Reference</title> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <style> .parent { width: 100px; font: 20px/1 Ahem; } .inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; } .sibling { width: 100px; height: 20px; background: green; } </style> <p>Two green squares separated by a 40px gap (trailing empty span ignored).</p> <div class="parent"> <div class="inner"></div> </div> <div class="sibling"></div>