contain-size-005.html (801B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: size containment on ruby-text</title> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 6 <meta name=flags content=""> 7 <meta name=assert content="size containment does not to apply ruby-text, which is an internal ruby element"> 8 <link rel="match" href="reference/contain-size-005-ref.html"> 9 <link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size"> 10 <link rel=help href="https://drafts.csswg.org/css-display-3/#internal-ruby-element"> 11 12 <style> 13 div { 14 overflow: hidden; 15 position: absolute; 16 } 17 rt { 18 contain: size; 19 display: ruby-text; 20 font-size: 1rem; 21 } 22 </style> 23 24 <p>This test passes if you can see the word PASS below. 25 <div><ruby><rt>PASS</rt></ruby></div>