| 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: baseline-alignment of inline replaced element a
nd '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/#replaced-base
lines" title="4.3 Atomic Inline Baselines" /> |
| 11 <link rel="match" href="baseline-inline-replaced-002-ref.xht" /> |
| 12 |
| 13 <meta content="ahem image" name="flags" /> |
| 14 <meta content="This test checks that the baseline-alignment of an image in the
line box of a block with 'writing-mode' set to 'vertical-rl' is 'central' and n
ot 'alphabetic'." name="assert" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div |
| 18 { |
| 19 background-color: red; |
| 20 font: 6em/1 Ahem; /* computes to 96px/96px */ |
| 21 height: 99px; /* the height of the cat image */ |
| 22 -webkit-writing-mode: vertical-rl; |
| 23 } |
| 24 |
| 25 img |
| 26 { |
| 27 vertical-align: baseline; |
| 28 } |
| 29 /* In vertical writing mode, the central baseline is used as the dominant base
line; |
| 30 here, the central baseline is assumed to be halfway between the under and over |
| 31 logical margin edges of the inline replaced element box. */ |
| 32 |
| 33 /* cat.png has an intrinsic height of 99px and an intrinsic width of 98px */ |
| 34 ]]></style> |
| 35 </head> |
| 36 |
| 37 <body> |
| 38 |
| 39 <p>Test passes if there is a cat and <strong>no red</strong>.</p> |
| 40 |
| 41 <div><img src="support/cat.png" alt="Image download support must be enabled" /
></div> |
| 42 |
| 43 </body> |
| 44 </html> |
| OLD | NEW |