Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/CSS2/box-display/inline-text-after-block-in-inline-with-intervening-float.html
<!DOCTYPE html> <title>CSS Test: inline text after block-in-inline with intervening float lands alongside the float</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="help" href="https://www.w3.org/TR/CSS21/visuren.html#floats"> <link rel="match" href="inline-text-after-block-in-inline-with-intervening-float-ref.html"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <meta name="assert" content="Inline text following a block-in-inline and an intervening float collapses with the block's margin-bottom and lands alongside the float."> <style> .container { width: 200px; font: 20px/1 Ahem; color: green; } .first { width: 200px; height: 20px; margin-bottom: 40px; background: blue; } .intervening { float: left; width: 80px; height: 60px; background: yellow; } </style> <p>Blue rectangle, 40px gap, then 'XX' alongside the yellow float.</p> <div class="container"> <span><div class="first"></div></span> <div class="intervening"></div> <span>XX</span> </div>
/css/CSS2/box-display/inline-text-after-block-in-inline-with-intervening-float-ref.html
<!DOCTYPE html> <title>CSS Reference</title> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <style> .container { width: 200px; font: 20px/1 Ahem; color: green; } .first { width: 200px; height: 20px; margin-bottom: 40px; background: blue; } .intervening { float: left; width: 80px; height: 60px; background: yellow; } </style> <p>Blue rectangle, 40px gap, then 'XX' alongside the yellow float.</p> <div class="container"> <div class="first"></div> <div class="intervening"></div> XX </div>