contain-size-002.html (786B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-contain test: size containment on ruby-base</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-base, which is an internal ruby element"> 8 <link rel="match" href="reference/pass_if_pass_below_clipped.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 rb { 18 contain: size; 19 display: ruby-base; 20 } 21 </style> 22 23 <p>Test passes if there is the word "PASS" below.</p> 24 <div><ruby><rb>PASS</rb></ruby></div>