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 empty non-replaced inline
-block element and 'vertical-rl'</title> | 7 <title>CSS Writing Modes Test: baseline-alignment of empty non-replaced inline
-block element and 'vertical-rl'</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="../css21/reference/ref-filled-green-100px-square.xht"
/> | 11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> |
12 | 12 |
13 <meta content="ahem" name="flags" /> | 13 <meta content="ahem" name="flags" /> |
14 <meta content="This test checks that the baseline-alignment of an empty inline
-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central'
and not 'alphabetic'." name="assert" /> | 14 <meta content="This test checks that the baseline-alignment of an empty inline
-block box in the line box with 'writing-mode' set to 'vertical-rl' is 'central'
and not '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 color: green; | 20 color: green; |
21 font: 3.125em/1 Ahem; /* computes to 50px/50px */ | 21 font: 50px/1 Ahem; /* computes to 50px/50px */ |
22 height: 2em; /* computes to 100px */ | 22 height: 2em; /* computes to 100px */ |
23 -webkit-writing-mode: vertical-rl; | 23 -webkit-writing-mode: vertical-rl; |
24 } | 24 } |
25 | 25 |
26 span | 26 span |
27 { | 27 { |
28 border-right: green solid 1em; | 28 border-right: green solid 1em; |
29 display: inline-block; | 29 display: inline-block; |
30 height: 2em; | 30 height: 2em; |
31 } | 31 } |
32 ]]></style> | 32 ]]></style> |
33 </head> | 33 </head> |
34 | 34 |
35 <body> | 35 <body> |
36 | 36 |
37 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> | 37 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
38 | 38 |
39 <div> | 39 <div> |
40 <span></span> | 40 <span></span> |
41 TL | 41 TL |
42 </div> | 42 </div> |
43 | 43 |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |