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-text-after-block-in-inline-margin.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Test: inline text after block-in-inline starts after the block's margin-bottom</title>
<link rel="match" href="inline-text-after-block-in-inline-margin-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="Inline content following a block-in-inline starts after the block's margin-bottom on a new line.">
<style>
.container { width: 200px; font: 20px/1 Ahem; color: green; }
.inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
</style>
<p>Green square, 40px gap, then 'XX' on its own line.</p>
<div class="container">
<span><div class="inner"></div>XX</span>
</div>