initial-letter-float-004-ref.html (997B)
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 <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 .float { 19 background: cyan; 20 clear: none; 21 float: left; 22 height: 50px; 23 width: 50px; 24 } 25 26 .fake-initial-letter { 27 background: lime; 28 float: left; 29 height: 80px; 30 margin-top: 2px; 31 width: 80px; 32 } 33 </style> 34 </head> 35 <body> 36 <div class="sample"> 37 <div class="fake-initial-letter"></div> 38 bc<br> 39 <div class="float" style="clear:left"></div> 40 def<br>ghi<br>jkl<br>mno<br> 41 </div> 42 </body> 43 </html>