Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/CSS2/box-display/block-in-inline-margin-with-leading-and-trailing-text.html
<!DOCTYPE html> <title>CSS Test: block-in-inline sandwiched between text on both sides</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-margin-with-leading-and-trailing-text-ref.html"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <meta name="assert" content="Inline text on both sides of a block-in-inline forms separate lines around the block, with margin-bottom advancing the trailing line."> <style> .container { width: 100px; font: 20px/1 Ahem; color: green; } .inner { width: 100px; height: 20px; margin-bottom: 40px; background: green; } </style> <p>'AA' on a line, green square below, 40px gap, then 'BB' on a line.</p> <div class="container"> <span>AA<div class="inner"></div>BB</span> </div>
/css/CSS2/box-display/block-in-inline-margin-with-leading-and-trailing-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>'AA' on a line, green square below, 40px gap, then 'BB' on a line.</p> <div class="container"> AA<div class="inner"></div>BB </div>