| 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: central baseline-alignment of text with 'text-o
rientation: upright' (vertical-rl)</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/#text-baseline
s" title="4.2 Text Baselines" /> |
| 11 <link rel="match" href="central-baseline-alignment-002-ref.xht" /> |
| 12 |
| 13 <meta content="This test checks that the central baseline is used as the domin
ant baseline when 'text-orientation' is 'upright' in vertical writing-mode." nam
e="assert" /> |
| 14 <meta content="ahem" name="flags" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div#textorient-mixed |
| 18 { |
| 19 color: orange; |
| 20 font: 3.75em/1.5 Ahem; /* computes to 60px/90px */ |
| 21 height: 4em; |
| 22 -webkit-text-orientation: upright; |
| 23 -webkit-writing-mode: vertical-rl; |
| 24 } |
| 25 |
| 26 span#blue120 |
| 27 { |
| 28 color: blue; |
| 29 font-size: 2em; /* computes to 120px */ |
| 30 } |
| 31 |
| 32 span#orange30 |
| 33 { |
| 34 font-size: 0.5em; /* computes to 30px */ |
| 35 } |
| 36 ]]></style> |
| 37 |
| 38 </head> |
| 39 |
| 40 <body> |
| 41 |
| 42 <p>Test passes if 2 orange squares are centered with respect to a blue square.
</p> |
| 43 |
| 44 <div id="textorient-mixed">A<span id="blue120">B</span><span id="orange30">O</
span></div> |
| 45 |
| 46 </body> |
| 47 </html> |
| OLD | NEW |