initial-letter-raise-initial.html (1152B)
1 <!DOCTYPE html> 2 <title>Tests initial letter raise initial</title> 3 <link rel="author" title="Google LLC" href="https://www.google.com/"> 4 <link rel="help" href="https://drafts.csswg.org/css-inline/#raise-initial"> 5 <meta name="flags" content="ahem"> 6 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" > 7 <link rel="match" href="initial-letter-raise-initial-ref.html"> 8 <script src="resources/initial-letter-variants.js"></script> 9 <meta name="variant" content="?class="> 10 <meta name="variant" content="?class=no-ascent"> 11 <meta name="variant" content="?class=no-descent"> 12 <meta name="variant" content="?class=rtl"> 13 <style> 14 .sample { 15 border: solid 1px green; 16 font-family: Ahem; 17 font-size: 20px; 18 line-height: 24px; 19 width: 230px; 20 } 21 22 .initial-letter::first-letter { 23 initial-letter: 3 raise; 24 color: lime; 25 font-size: 100px; /* should be ignored in rendering */ 26 line-height: 50px; /* should be ignored in rendering */ 27 } 28 29 .rtl { 30 direction: rtl; 31 } 32 </style> 33 </head> 34 <body> 35 <div class="sample initial-letter"> 36 Abc<br>def<br>ghi<br>jkl<br>mno<br> 37 </div>