initial-letter-block-position-raise-over-ruby-ref.html (944B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests initial letter with over ruby</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 .fake-initial-letter { 19 background: lime; 20 float: left; 21 height: 80px; 22 margin-top: 2px; 23 width: 80px; 24 } 25 26 .surrounding { 27 display:inline-block; 28 margin-top: -16px; 29 } 30 </style> 31 </head> 32 <body> 33 <div class="sample"> 34 <div class="fake-initial-letter"></div><br><br> 35 <div class="surrounding">bc <ruby>xyz<rt>XYZ</rt></ruby></div> 36 def<br>ghi<br>jkl<br>mno<br> 37 </div> 38 </body> 39 </html>