contain-paint-baseline-001.html (679B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: paint containment and baselines</title> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 6 <meta name=assert content="contain:paint does not suppress baseline alignment"> 7 <link rel="match" href="reference/contain-baseline-ref.html"> 8 <link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint"> 9 10 <style> 11 div { 12 display: inline-block; 13 height: 5px; 14 background: blue; 15 width: 50px; 16 contain: paint; 17 color: transparent; 18 font-size: 100px; 19 } 20 </style> 21 22 <p>Test passes if there are two, not one, blue lines below.</p> 23 <div></div><div>a</div>