contain-paint-007.html (839B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: paint containment on ruby-text-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-text-container"> 8 <link rel="match" href="reference/contain-paint-007-ref.html"> 9 <link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-paint"> 10 11 <style> 12 rtc { 13 contain: paint; 14 display: ruby-text-container; 15 width: 0; /* Because if the test fails, this may get blockified, and which could make wide enough to hold the PASS */ 16 font-size: 1rem; 17 } 18 rtc::after { 19 content: "PASS"; 20 position: absolute; 21 } 22 </style> 23 24 <p>This test passes if you can see the word PASS below. 25 <div><ruby><rtc></rtc></ruby></div>