| 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: border-spacing - first value is specified and n
on-zero in 'vertical-lr' table</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/#dimension-map
ping" title="7.2 Dimension Mapping" /> |
| 11 <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html
#separated-borders" title="17.6.1 The separated borders model" /> |
| 12 <link rel="match" href="border-spacing-vrl-002-ref.xht" /> |
| 13 |
| 14 <meta content="ahem" name="flags" /> |
| 15 <meta content="This test checks that first value of 'border-spacing' represent
s, from top to bottom, a) spacing between logical table left padding (physical t
able top padding) and leftmost cells and b) inter-column spacing and c) spacing
between rightmost cells and logical table right padding (physical table bottom p
adding)." name="assert" /> |
| 16 |
| 17 <style type="text/css"><![CDATA[ |
| 18 table |
| 19 { |
| 20 border-spacing: 0.5em 0em; /* computes to logical horizontal border-spacin
g: 10px */ |
| 21 font: 1.25em/1 Ahem; /* computes to 20px/20px */ |
| 22 padding: 1.25em 0em; /* computes to padding-top: 25px and padding-bottom:
25px */ |
| 23 -webkit-writing-mode: vertical-lr; |
| 24 } |
| 25 |
| 26 td |
| 27 { |
| 28 height: 0.5em; |
| 29 padding: 0em; |
| 30 width: 1em; |
| 31 } |
| 32 |
| 33 /* |
| 34 |
| 35 0px width of nth row 20px TOP |
| 36 | | |
| 37 =================================== 0x (0em) ||| |
| 38 | table padding-top 25px (1.25em) | ||| |
| 39 | with red background=color | \ ||| / |
| 40 | with red background=color | \ / |
| 41 | with red background=color | \ / |
| 42 | with red background=color | v |
| 43 =================================== 25px (1.25em) |
| 44 |logical left border-spacing: 10px| |
| 45 | with red background=color | |
| 46 =================================== 35px (1.75em) |
| 47 | height of 1st td 10px (0.5em) | ||| |
| 48 | with red background=color | ||| |
| 49 =================================== 45px (2.25em) \ ||| / |
| 50 |inter-column spacing 10px (0.5em)| \ / |
| 51 | with red background=color | \ / |
| 52 =================================== 55px (2.75em) v |
| 53 | height of 2nd td 10px (0.5em) | |
| 54 | with red background=color | |
| 55 =================================== 65px (3.25em) |
| 56 |logical righ border-spacing: 10px| ||| |
| 57 | with red background=color | ||| |
| 58 =================================== 75px (3.75em) \ ||| / |
| 59 |tble padding-bottom 25px (1.25em)| \ / |
| 60 | with red background=color | \ / |
| 61 | with red background=color | v |
| 62 | with red background=color | |
| 63 | with red background=color | |
| 64 =================================== 100px (5em) BOTTOM |
| 65 |
| 66 */ |
| 67 |
| 68 div#reference-overlapping-green |
| 69 { |
| 70 background-color: green; |
| 71 height: 6.25em; |
| 72 position: absolute; |
| 73 width: 6.25em; |
| 74 } |
| 75 |
| 76 div#reference-overlapped-red |
| 77 { |
| 78 background-color: red; |
| 79 height: 6.25em; |
| 80 position: absolute; |
| 81 width: 6.25em; |
| 82 z-index: -1; |
| 83 } |
| 84 |
| 85 table#test-overlapped-red |
| 86 { |
| 87 background-color: red; |
| 88 } |
| 89 |
| 90 table#test-overlapping-green |
| 91 { |
| 92 background-color: green; |
| 93 } |
| 94 ]]></style> |
| 95 </head> |
| 96 |
| 97 <body> |
| 98 |
| 99 <p>Test passes if there is a filled green rectangle and <strong>no red</strong
>.</p> |
| 100 |
| 101 <div id="reference-overlapping-green"></div> |
| 102 |
| 103 <table id="test-overlapped-red"> |
| 104 |
| 105 <tr><td></td><td></td></tr> |
| 106 |
| 107 <tr><td></td><td></td></tr> |
| 108 |
| 109 <tr><td></td><td></td></tr> |
| 110 |
| 111 <tr><td></td><td></td></tr> |
| 112 |
| 113 <tr><td></td><td></td></tr> |
| 114 |
| 115 </table> |
| 116 |
| 117 <div id="reference-overlapped-red"></div> |
| 118 |
| 119 <table id="test-overlapping-green"> |
| 120 |
| 121 <tr><td></td><td></td></tr> |
| 122 |
| 123 <tr><td></td><td></td></tr> |
| 124 |
| 125 <tr><td></td><td></td></tr> |
| 126 |
| 127 <tr><td></td><td></td></tr> |
| 128 |
| 129 <tr><td></td><td></td></tr> |
| 130 |
| 131 </table> |
| 132 |
| 133 </body> |
| 134 </html> |
| OLD | NEW |