contain-paint-002.html (779B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: paint 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="paint 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-paint"> 10 11 <style> 12 span { 13 contain: paint; 14 width: 0; /* Because if the test fails, the span may get blockified, and which would make wide enough to hold the PASS */ 15 } 16 span::after { 17 content: "PASS"; 18 position: absolute; 19 } 20 </style> 21 22 <p>Test passes if there is the word "PASS" below.</p> 23 <div><span></span></div>