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 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 border-collapsing tabl
es 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-left: red solid 50px; |
| 20 border-collapse: collapse; |
| 21 float: left; |
| 22 height: 100px; |
| 23 writing-mode: vertical-lr; |
| 24 } |
| 25 |
| 26 td |
| 27 { |
| 28 border-left: green solid 50px; |
| 29 padding: 0px; |
| 30 } |
| 31 |
17 div#reference-overlapped-red | 32 div#reference-overlapped-red |
18 { | 33 { |
19 background-color: red; | 34 background-color: red; |
20 height: 100px; | 35 height: 100px; |
21 position: absolute; | 36 position: relative; |
22 width: 100px; | 37 width: 100px; |
23 z-index: -1; | 38 z-index: -1; |
24 } | 39 } |
| 40 ]]></style> |
25 | 41 |
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> | 42 </head> |
35 | 43 |
36 <body> | 44 <body> |
37 | 45 |
38 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> | 46 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
39 | 47 |
| 48 <table id="first"> |
| 49 |
| 50 <tbody> |
| 51 |
| 52 <tr> |
| 53 <td></td> <td></td> |
| 54 </tr> |
| 55 |
| 56 </tbody> |
| 57 |
| 58 </table> |
| 59 |
| 60 |
| 61 <table id="second"> |
| 62 |
| 63 <tbody> |
| 64 |
| 65 <tr> |
| 66 <td></td> <td></td> |
| 67 </tr> |
| 68 |
| 69 </tbody> |
| 70 |
| 71 </table> |
| 72 |
| 73 |
40 <div id="reference-overlapped-red"></div> | 74 <div id="reference-overlapped-red"></div> |
41 | 75 |
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> | 76 </body> |
53 </html> | 77 </html> |
OLD | NEW |