Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/CSS2/box-display/block-in-inline-followed-by-line-break-and-text.html
<!DOCTYPE html> <title>CSS Test: block-in-inline followed by line break and text starts text after the block's margin</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="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>
/css/CSS2/box-display/block-in-inline-followed-by-line-break-and-text-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; } .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"> <div class="inner"></div><br>XX </div>