floats-009.xht (1672B)
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: Right floats interacting with right-to-left inline content</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-07 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> 8 <link rel="match" href="floats-009-ref.xht" /> 9 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="Inline boxes are reflowed to the first available line on the other side of a float for right-to-left." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 #div1 15 { 16 direction: rtl; 17 height: 200px; 18 width: 300px; 19 } 20 #span1 21 { 22 color: orange; 23 font: 100px/1 Ahem; 24 } 25 .class1 26 { 27 background-color: blue; 28 float: right; 29 height: 100px; 30 width: 100px; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if the blue rectangle is to the right of the orange square and if the top edges are aligned.</p> 36 <div id="div1"> 37 <div class="class1"></div> 38 <div class="class1"></div> 39 <span id="span1">X</span> 40 </div> 41 </body> 42 </html>