Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Test: inline text after block-in-inline with intervening float lands alongside the float</title>
<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>