initial-letter-float-001-rtl.html (1105B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Tests initial letter should be part of the line in RTL</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-001-rtl-ref.html"> 10 <style> 11 .sample { 12 border: solid 1px green; 13 direction: rtl; 14 font-family: Ahem; 15 font-size: 20px; 16 line-height: 24px; 17 width: 230px; 18 } 19 20 .float { 21 background: cyan; 22 clear: none; 23 float: right; 24 height: 50px; 25 width: 50px; 26 } 27 28 .initial-letter::first-letter { 29 initial-letter: 3 drop; 30 color: lime; 31 font-size: 100px; /* should be ignored in rendering */ 32 line-height: 50px; /* should be ignored in rendering */ 33 } 34 </style> 35 </head> 36 <body> 37 <div class="sample initial-letter"><div class="float"></div> 38 Abc<br>def<br>ghi<br>jkl<br>mno<br> 39 </div> 40 </body> 41 </html>