Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/CSS2/box-display/inline-text-after-block-in-inline-margin.html
<!DOCTYPE html> <title>CSS Test: inline text after block-in-inline starts after the block's margin-bottom</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="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>
/css/CSS2/box-display/inline-text-after-block-in-inline-margin-ref.html
<!DOCTYPE html> <title>CSS Reference</title> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <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"> <div class="inner"></div>XX </div>