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