contain-layout-001.html (789B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: layout containment on non-atomic inlines</title> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 6 <meta name=flags content=""> 7 <meta name=assert content="layout containment does not apply to non atomic inlines"> 8 <link rel="match" href="../reference/pass_if_pass_below.html"> 9 <link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-layout"> 10 11 <style> 12 #pa { 13 contain: layout; 14 height: 100vh; /*If layout containment applies, the span becomes a BFC, height applies, and knocks SS off the page */ 15 } 16 17 #ss { 18 vertical-align: bottom; 19 } 20 </style> 21 22 <p>Test passes if there is the word "PASS" below.</p> 23 <div><span id="pa">PA</span><span id="ss">SS</span></div>