initial-letter-block-position-drop-over-ruby-tall-ref.html (934B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests initial letter with over ruby overflow</title> 5 <link rel="author" title="Google LLC" href="https://www.google.com/"> 6 <link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-block-position"> 7 <meta name="flags" content="ahem"> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" > 9 <style> 10 .sample { 11 border: solid 1px green; 12 font-family: Ahem; 13 font-size: 20px; 14 line-height: 24px; 15 width: 230px; 16 } 17 18 rt { font-size: 80px; } 19 20 .fake-initial-letter { 21 background: lime; 22 float: left; 23 height: 80px; 24 margin-top: 80px; 25 width: 80px; 26 } 27 28 .surrounding { display:inline-block; } 29 </style> 30 </head> 31 <body> 32 <div class="sample"> 33 <div class="fake-initial-letter"></div> 34 <div class="surrounding">bc <ruby>xyz<rt>X</rt></ruby></div> 35 def<br>ghi<br>jkl<br>mno<br> 36 </div> 37 </body> 38 </html>