abspos-024

Static position in rtl context

WeasyPrint

This browser

Source

 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: 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="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/022.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">
 9   <style type="text/css">
10    body { position: relative; }
11    .test { position: absolute; background: green; color: green;
12            width: 4em; height: 1em; }
13    .control { border-right: 4em solid red; height: 1em; }
14   </style>
15  </head>
16  <body dir="rtl">
17   <p>There should be a green box below on the right and no red.</p>
18   <div class="test"></div>
19   <div class="control"></div>
20  
21 </body>
22 </html>