Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/box-display/inline-block-after-block-in-inline-with-intervening-float.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Test: Inline-block after a block-in-inline and an intervening float lands past the float</title>
<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>