OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
2 | 2 |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
4 | 4 |
5 <head> | 5 <head> |
6 | 6 |
7 <title>CSS Writing Modes Test: baseline-alignment of inline replaced element a
nd 'vertical-lr'</title> | 7 <title>CSS Writing Modes Test: baseline-alignment of inline replaced element a
nd 'vertical-lr'</title> |
8 | 8 |
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> | 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" /> | 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" /> | 11 <link rel="match" href="baseline-inline-replaced-002-ref.xht" /> |
12 | 12 |
13 <meta content="ahem image" name="flags" /> | 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-lr' is 'central' and n
ot 'alphabetic'." name="assert" /> | 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-lr' is 'central' and n
ot 'alphabetic'." name="assert" /> |
15 | 15 |
16 <style type="text/css"><![CDATA[ | 16 <style type="text/css"><![CDATA[ |
17 div | 17 div |
18 { | 18 { |
19 background-color: red; | 19 background-color: red; |
20 font: 6em/1 Ahem; /* computes to 96px/96px */ | 20 font: 96px/1 Ahem; /* computes to 96px/96px */ |
21 height: 99px; /* the height of the cat image */ | 21 height: 99px; /* the height of the cat image */ |
22 -webkit-writing-mode: vertical-lr; | 22 -webkit-writing-mode: vertical-lr; |
23 } | 23 } |
24 | 24 |
25 img | 25 img |
26 { | 26 { |
27 vertical-align: baseline; | 27 vertical-align: baseline; |
28 } | 28 } |
29 /* In vertical writing mode, the central baseline is used as the dominant base
line; | 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 | 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. */ | 31 logical margin edges of the inline replaced element box. */ |
32 | 32 |
33 /* cat.png has an intrinsic height of 99px and an intrinsic width of 98px */ | 33 /* cat.png has an intrinsic height of 99px and an intrinsic width of 98px */ |
34 ]]></style> | 34 ]]></style> |
35 </head> | 35 </head> |
36 | 36 |
37 <body> | 37 <body> |
38 | 38 |
39 <p>Test passes if there is a cat and <strong>no red</strong>.</p> | 39 <p>Test passes if there is a cat and <strong>no red</strong>.</p> |
40 | 40 |
41 <div><img src="support/cat.png" alt="Image download support must be enabled" /
></div> | 41 <div><img src="support/cat.png" alt="Image download support must be enabled" /
></div> |
42 | 42 |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |