initial-letter-float-004.html (1091B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests left floats should clear left initial-letters and visa-versa.</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-floats"> 7 <meta name="flags" content="ahem"> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" > 9 <link rel="match" href="initial-letter-float-004-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 .float { 20 background: cyan; 21 clear: none; 22 float: left; 23 height: 50px; 24 width: 50px; 25 } 26 27 .initial-letter::first-letter { 28 initial-letter: 3 drop; 29 color: lime; 30 font-size: 100px; /* should be ignored in rendering */ 31 line-height: 50px; /* should be ignored in rendering */ 32 } 33 </style> 34 </head> 35 <body> 36 <div class="sample initial-letter"> 37 Abc<br> 38 <div class="float"></div> 39 def<br>ghi<br>jkl<br>mno<br> 40 </div> 41 </body> 42 </html>