initial-letter-float-003-ref.html (1090B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests float-avoidance in the block-direction</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: left; 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-right: 10px; 31 margin-top: -48px; 32 width: 80px; 33 } 34 </style> 35 </head> 36 <body> 37 <div class="sample"> 38 <div class="float"></div><div class="float" style="width:80px"></div> 39 <div class="fake-initial-letter"></div> 40 <div style="display:inline-block; margin-left:-10px;"> 41 bc<br>def<br>ghi<br>jkl<br></div> 42 mno<br> 43 </div> 44 </body> 45 </html>