1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Text-indent with 'direction' set to 'rtl'</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 <meta name="flags" content="ahem">
8 <meta name="assert" content="The 'text-indent' property on an element with 'direction: rtl' indents from the right instead of left.">
9 <style type="text/css">
10 #div1
11 {
12 direction: rtl;
13 font-family: Ahem;
14 line-height: 1em;
15 text-indent: 5em;
16 }
17 #div2
18 {
19 background: blue;
20 height: 1em;
21 float: right;
22 margin-right: 5em;
23 width: 5em;
24 }
25 </style>
26 </head>
27 <body>
28 <p>Test passes if the black box below is directly above the blue box.</p>
29 <div id="div1">XXXXX</div>
30 <div id="div2"></div>
31 </body>
32 </html>