Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/CSS2/box-display/inline-block-after-block-in-inline-with-intervening-float.html
<!DOCTYPE html> <title>CSS Test: Inline-block after a block-in-inline and an intervening float lands past 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-block-after-block-in-inline-with-intervening-float-ref.html"> <meta name="assert" content="An inline-block following a block-in-inline (with margin-bottom) and an intervening full-width-blocking float collapses with the block's margin-bottom and is pushed past the float when it doesn't fit alongside."> <style> .container { width: 100px; } .first { width: 100px; height: 10px; margin-bottom: 50px; background: blue; } .intervening { float: left; width: 90px; height: 50px; background: green; } .atomic { display: inline-block; width: 50px; height: 10px; vertical-align: top; background: orange; } </style> <p>A blue rectangle, a green floated rectangle below it, and an orange inline-block past the float.</p> <div class="container"> <span><div class="first"></div></span> <div class="intervening"></div> <span class="atomic"></span> </div>
/css/CSS2/box-display/inline-block-after-block-in-inline-with-intervening-float-ref.html
<!DOCTYPE html> <title>CSS Reference</title> <style> .container { width: 100px; } .first { width: 100px; height: 10px; margin-bottom: 50px; background: blue; } .intervening { float: left; width: 90px; height: 50px; background: green; } .atomic { display: inline-block; width: 50px; height: 10px; vertical-align: top; background: orange; } </style> <p>A blue rectangle, a green floated rectangle below it, and an orange inline-block past the float.</p> <div class="container"> <div class="first"></div> <div class="intervening"></div> <span class="atomic"></span> </div>