initial-letter-float-002-ref.html (1275B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests adding the initial-letter to the exclusion-space</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 display: inline-block; 29 height: 80px; 30 margin-top: 2px; 31 width: 80px; 32 } 33 34 .surrounding { 35 display: inline-block; 36 margin-left: -20px; 37 vertical-align: top; 38 } 39 40 .surrounding2 { 41 display: block; 42 margin-left: 50px; 43 margin-top: 0px; 44 } 45 </style> 46 </head> 47 <body> 48 <div class="sample"><div class="float"></div><div class="float"></div> 49 <div class="fake-initial-letter"></div> 50 <div class="surrounding">bc<br>def<br>ghi<br>jkl<br></div> 51 <div class="surrounding2">mno</div> 52 </div> 53 </body> 54 </html>