wpt / css / CSS2 / box-display / two-block-in-inlines-with-text-between.html

Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/CSS2/box-display/two-block-in-inlines-with-text-between.html

<!DOCTYPE html>
<title>CSS Test: two block-in-inlines with text between them</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/visuren.html#inline-formatting">
<link rel="match" href="two-block-in-inlines-with-text-between-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<meta name="assert" content="Two block-in-inlines separated by inline text produce three vertical regions: first block, text line, second block, with margins applied between blocks.">
<style>
.container { width: 100px; font: 20px/1 Ahem; color: green; }
.first { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
.second { width: 100px; height: 20px; background: green; }
</style>
<p>Green square, 40px gap, 'XX' on a line, then a green square.</p>
<div class="container">
    <span><div class="first"></div>XX<div class="second"></div></span>
</div>

/css/CSS2/box-display/two-block-in-inlines-with-text-between-ref.html

<!DOCTYPE html>
<title>CSS Reference</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.container { width: 100px; font: 20px/1 Ahem; color: green; }
.first { width: 100px; height: 20px; margin-bottom: 40px; background: green; }
.second { width: 100px; height: 20px; background: green; }
</style>
<p>Green square, 40px gap, 'XX' on a line, then a green square.</p>
<div class="container">
    <div class="first"></div>XX<div class="second"></div>
</div>