initial-letter-raised-sunken-caps-raise.html (996B)
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 <link rel="match" href="initial-letter-raised-sunken-caps-raise-ref.html"> 10 <style> 11 .sample { 12 border: solid 1px green; 13 font-family: Ahem; 14 font-size: 20px; 15 line-height: 24px; 16 width: 230px; 17 } 18 19 .initial-letter::first-letter { 20 initial-letter: 3 raise; 21 color: lime; 22 font-size: 100px; /* should be ignored in rendering */ 23 line-height: 50px; /* should be ignored in rendering */ 24 } 25 </style> 26 </head> 27 <body> 28 <div>This line before initial letter.</div> 29 <div class="sample initial-letter"> 30 Abc<br>def<br>ghi<br>jkl<br>mno<br> 31 </div> 32 </body> 33 </html>