Initial-letter-breaking.html (1337B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests interaction with fragmentation.</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-breaking"> 7 <meta name="flags" content="ahem"> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" > 9 <link rel="match" href="Initial-letter-breaking-ref.html"> 10 <style> 11 .sample { 12 font-family: Ahem; 13 font-size: 20px; 14 line-height: 24px; 15 width: 230px; 16 } 17 18 .float { 19 background: cyan; 20 clear: none; 21 float: left; 22 height: 50px; 23 width: 50px; 24 } 25 26 .mc { columns: 2;} 27 28 .initial-letter::first-letter { 29 initial-letter: 3 drop; 30 color: lime; 31 font-size: 100px; /* should be ignored in rendering */ 32 line-height: 50px; /* should be ignored in rendering */ 33 } 34 </style> 35 </head> 36 <body> 37 <div class="mc"> 38 <div class="sample initial-letter">ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC </div> 39 <div class="sample initial-letter">ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC </div> 40 <div class="sample initial-letter">ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC ABC </div> 41 </div> 42 </body> 43 </html>