bidi-position-fixed-001.xht (1104B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: position:fixed in rtl context</title> 5 <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop"/> 9 <meta name="assert" content="Default horizontal position of position:fixed block should be right in rtl context, and ancestor direction should still be applied inside the block taken out of normal flow"/> 10 <style type="text/css"><![CDATA[ 11 body {direction:rtl;} 12 .note {direction:ltr;position:fixed;margin-top:2em;} 13 ]]></style> 14 </head> 15 16 <body> 17 18 <div style="position:fixed;">!Right</div> 19 20 <p class="note">The word above should be right-aligned on the page and end with an exclamation mark.</p> 21 22 </body> 23 </html>