initial-letter-sunk-initial-vlr-ref.html (1128B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests initial letter sunk initial in vertical-lr</title> 5 <link rel="author" title="Google LLC" href="https://www.google.com/"> 6 <link rel="help" href="https://drafts.csswg.org/css-inline/#sunk-initial"> 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 height: 230px; 15 line-height: 24px; 16 writing-mode: vertical-lr; 17 } 18 19 .fake-initial-letter { 20 background: lime; 21 display: inline-block; 22 height: 80px; 23 margin-left: -4px; 24 margin-right: 8px; 25 width: 80px; 26 } 27 28 .remainder { 29 display: inline-block; 30 margin-left: 24px; 31 margin-top: -20px; 32 vertical-align: bottom; 33 } 34 35 .remainder2 { 36 display: inline-block; 37 } 38 </style> 39 </head> 40 <body> 41 <div class="sample"> 42 <div class="fake-initial-letter"></div> 43 <div class="remainder">bc<br>def<br>ghi<br></div><br> 44 <div class="remainder2">jkl<br>mno<br></div> 45 </div> 46 </body> 47 </html>