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: contiguous left-floating boxes with 'writing-mo
de' set to 'vertical-lr'</title> | 7 <title>CSS Writing Modes Test: floated non-border-collapsing tables (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/#vertical-layo
ut" title="7.1 Principles of Layout in Vertical Writing Modes" /> | 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="../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="" name="flags" /> |
14 <meta content="This test checks the flow of contiguous left-floated boxes with
'writing-mode' set to 'vertical-lr'." name="assert" /> | 14 <meta content="This test checks that contiguous floated non-border-collapsing
tables in a 'vertical-lr' context do not overlap." name="assert" /> |
15 | 15 |
16 <style type="text/css"><![CDATA[ | 16 <style type="text/css"><![CDATA[ |
| 17 table |
| 18 { |
| 19 border-collapse: separate; |
| 20 border-left: green solid 25px; |
| 21 border-spacing: 0px; |
| 22 float: left; |
| 23 height: 100px; |
| 24 writing-mode: vertical-lr; |
| 25 } |
| 26 |
| 27 td |
| 28 { |
| 29 border-left: green solid 25px; |
| 30 padding: 0px; |
| 31 } |
| 32 |
17 div#reference-overlapped-red | 33 div#reference-overlapped-red |
18 { | 34 { |
19 background-color: red; | 35 background-color: red; |
20 height: 100px; | 36 height: 100px; |
21 position: absolute; | 37 position: relative; |
22 width: 100px; | 38 width: 100px; |
23 z-index: -1; | 39 z-index: -1; |
24 } | 40 } |
| 41 ]]></style> |
25 | 42 |
26 div.floated-left | |
27 { | |
28 color: green; | |
29 float: left; | |
30 font: 20px/1 Ahem; /* computes to 20px/20px */ | |
31 writing-mode: vertical-lr; | |
32 } | |
33 ]]></style> | |
34 </head> | 43 </head> |
35 | 44 |
36 <body> | 45 <body> |
37 | 46 |
38 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> | 47 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
39 | 48 |
| 49 <table id="first"> |
| 50 |
| 51 <tbody> |
| 52 |
| 53 <tr> |
| 54 <td></td> <td></td> |
| 55 </tr> |
| 56 |
| 57 </tbody> |
| 58 |
| 59 </table> |
| 60 |
| 61 |
| 62 <table id="second"> |
| 63 |
| 64 <tbody> |
| 65 |
| 66 <tr> |
| 67 <td></td> <td></td> |
| 68 </tr> |
| 69 |
| 70 </tbody> |
| 71 |
| 72 </table> |
| 73 |
| 74 |
40 <div id="reference-overlapped-red"></div> | 75 <div id="reference-overlapped-red"></div> |
41 | 76 |
42 <div class="floated-left">abcde</div> | |
43 | |
44 <div class="floated-left">fghjk</div> | |
45 | |
46 <div class="floated-left">lmnor</div> | |
47 | |
48 <div class="floated-left">rstuv</div> | |
49 | |
50 <div class="floated-left">wxyzz</div> | |
51 | |
52 </body> | 77 </body> |
53 </html> | 78 </html> |
OLD | NEW |