direction-vlr-003.xht (1299B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Writing Modes Test: 'vertical-lr' and 'direction: rtl'</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-directions" title="6.2 Flow-relative Directions" /> 11 <link rel="match" href="direction-vlr-003-ref.xht" /> 12 13 <meta content="ahem image" name="flags" /> 14 <meta content="This test checks that when a block box has 'direction' set to 'rtl' in a vertical writing-mode, then inlines boxes are aligned from line-right to line-left." name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 div 19 { 20 color: green; 21 font: 100px/1 Ahem; /* computes to 100px/100px */ 22 height: 300px; 23 width: 200px; 24 } 25 26 div 27 { 28 background: red url("support/left-bottom-200x300.png"); 29 direction: rtl; 30 writing-mode: vertical-lr; 31 } 32 ]]></style> 33 </head> 34 35 <body> 36 37 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 38 39 <div>B</div> 40 41 </body> 42 </html>