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: Right floats interacting with right-to-left inline content</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
7 <meta name="flags" content="ahem">
8 <meta name="assert" content="Inline boxes are reflowed to the first available line on the other side of a float for right-to-left.">
9 <style type="text/css">
10 #div1
11 {
12 direction: rtl;
13 height: 2in;
14 width: 3in;
15 }
16 #span1
17 {
18 color: orange;
19 font: 1in/1 Ahem;
20 }
21 .class1
22 {
23 background-color: blue;
24 float: right;
25 height: 1in;
26 width: 1in;
27 }
28 </style>
29 </head>
30 <body>
31 <p>Test passes if the blue box is to the right of the orange box and the top edges are aligned.</p>
32 <div id="div1">
33 <div class="class1"></div>
34 <div class="class1"></div>
35 <span id="span1">X</span>
36 </div>
37 </body>
38 </html>