| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/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 'direc
tion: rtl'</title> |
| 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
| 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layo
ut" title="7.1 Principles of Layout in Vertical Writing Modes" /> |
| 11 <link rel="match" href="text-align-vlr-009-ref.xht" /> |
| 12 |
| 13 |
| 14 <meta content="ahem image" name="flags" /> |
| 15 <meta content="This test checks that 'text-align: center' centers an inline bo
x within a line box with respect to the line box's logical left and right sides
(line-left and line-right sides)." name="assert" /> |
| 16 |
| 17 <style type="text/css"><![CDATA[ |
| 18 p |
| 19 { |
| 20 line-height: 1.25; |
| 21 } |
| 22 |
| 23 strong |
| 24 { |
| 25 line-height: 1; |
| 26 } |
| 27 |
| 28 div |
| 29 { |
| 30 color: green; |
| 31 font: 6.25em/1 Ahem; /* computes to 100px/100px */ |
| 32 height: 300px; |
| 33 width: 200px; |
| 34 } |
| 35 |
| 36 div |
| 37 { |
| 38 background: red url("support/left-center-200x300.png"); |
| 39 direction: rtl; |
| 40 text-align: center; |
| 41 -webkit-writing-mode: vertical-lr; |
| 42 } |
| 43 ]]></style> |
| 44 </head> |
| 45 |
| 46 <body> |
| 47 |
| 48 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
| 49 |
| 50 <div>C</div> |
| 51 |
| 52 </body> |
| 53 </html> |
| OLD | NEW |