abspos-024.xht (1185B)
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: Static position in rtl context</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 7 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-11 --> 8 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/022.html" type="text/html"/> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width"/> 10 <link rel="match" href="abspos-024-ref.xht" /> 11 12 <style type="text/css"> 13 body { position: relative; } 14 .test { position: absolute; background: green; color: green; 15 width: 4em; height: 1em; } 16 .control { border-right: 4em solid red; height: 1em; } 17 </style> 18 </head> 19 <body dir="rtl"> 20 <p>Test passes if there is a green stripe on the right and <strong>no red</strong>.</p> 21 <div class="test"></div> 22 <div class="control"></div> 23 24 </body> 25 </html>