text-align-vlr-009.xht (1176B)
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: 'text-align: center' - 'vertical-lr' and 'direction: ltr'</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/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" /> 11 <link rel="match" href="text-align-vlr-009-ref.xht" /> 12 13 <meta content="ahem image" name="flags" /> 14 15 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 16 <style type="text/css"><![CDATA[ 17 div 18 { 19 color: green; 20 font: 100px/1 Ahem; /* computes to 100px/100px */ 21 height: 300px; 22 width: 200px; 23 } 24 25 div 26 { 27 background: red url("support/left-center-200x300.png"); 28 direction: ltr; 29 text-align: center; 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>C</div> 40 41 </body> 42 </html>