| 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: right' - 'vertical-rl' and 'direct
ion: ltr'</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="direction-vrl-002-ref.xht" /> |
| 12 |
| 13 <meta content="ahem image" name="flags" /> |
| 14 <meta content="This test checks that 'text-align: right' aligns an inline box
within a line box with respect to such line box's logical right side (line-right
side)." name="assert" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 p |
| 18 { |
| 19 line-height: 1.25; |
| 20 } |
| 21 |
| 22 strong |
| 23 { |
| 24 line-height: 1; |
| 25 } |
| 26 |
| 27 div |
| 28 { |
| 29 color: green; |
| 30 font: 6.25em/1 Ahem; /* computes to 100px/100px */ |
| 31 height: 300px; |
| 32 width: 200px; |
| 33 } |
| 34 |
| 35 div |
| 36 { |
| 37 background: red url("support/right-bottom-200x300.png"); |
| 38 direction: ltr; |
| 39 text-align: right; |
| 40 -webkit-writing-mode: vertical-rl; |
| 41 } |
| 42 ]]></style> |
| 43 </head> |
| 44 |
| 45 <body> |
| 46 |
| 47 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
| 48 |
| 49 <div>B</div> |
| 50 |
| 51 </body> |
| 52 </html> |
| OLD | NEW |