initial-letter-raised-sunken-caps-raise-ref.html (875B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests initial letter raise initial should not overlap with previous line.</title> 5 <link rel="author" title="Google LLC" href="https://www.google.com/"> 6 <link rel="help" href="https://drafts.csswg.org/css-inline/#raised-sunken-caps"> 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 </style> 26 </head> 27 <body> 28 <div>This line before initial letter.</div> 29 <div class="sample"> 30 <div class="fake-initial-letter"></div><br><br> 31 bc<br>def<br>ghi<br>jkl<br>mno<br> 32 </div> 33 </body> 34 </html>