Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Test: block-in-inline followed by line break and text starts text after the block's margin</title>
<link rel="match" href="block-in-inline-followed-by-line-break-and-text-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="A line break followed by text after a block-in-inline starts at the block's bottom plus margin-bottom plus one line height.">
<style>
.container { width: 100px; font: 20px/1 Ahem; color: green; }
.inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
</style>
<p>Green square, 40px gap, an empty line, then 'XX' on the next line.</p>
<div class="container">
<span><div class="inner"></div><br>XX</span>
</div>