text-indent-rtl-002.xht (1577B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Text-indent with negative value</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop" /> 7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-indent-property"/> 8 <link rel="match" href="text-indent-rtl-002-ref.xht"/> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="The 'text-indent' property with negative values with direction rtl indent to the right." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"> 13 #div1 14 { 15 direction: rtl; 16 width: 40em; 17 } 18 #div2 19 { 20 font-family: Ahem; 21 line-height: 1em; 22 text-indent: -5em; 23 width: 30em; 24 } 25 #div3 26 { 27 background: blue; 28 height: 1em; 29 float: right; 30 margin-right: -5em; 31 width: 5em; 32 } 33 </style> 34 </head> 35 <body> 36 <p>Test passes if the black box below is directly above the blue box.</p> 37 <div id="div1"> 38 <div id="div2">XXXXX</div> 39 <div id="div3"></div> 40 </div> 41 </body> 42 </html>