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 conflict resolution - cell wins over row
, cell wins over rowgroup and cell wins over table (compound)</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/#logical-direc
tions" title="6.2 Flow-relative Directions" /> |
| 11 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-
resolution" title="17.6.2.1 Border conflict resolution" /> |
| 12 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> |
| 13 |
| 14 <meta content="" name="flags" /> |
| 15 <meta content="This test checks that, in border-collapsing model, when 'border
-style' values and 'border-width' values are identical, then the 'border-color'
set on a cell wins over the 'border-color' set on a row (5th table), the 'border
-color' set on a cell wins over the 'border-color' set on a row group (tfoot in
4th table, thead in 3rd table, tbody in 2nd table) and the 'border-color' set on
a cell wins over the 'border-color' set on a table element (1st table)." name="
assert" /> |
| 16 |
| 17 <style type="text/css"><![CDATA[ |
| 18 table |
| 19 { |
| 20 border-collapse: collapse; |
| 21 direction: ltr; |
| 22 height: 20px; |
| 23 -webkit-writing-mode: vertical-rl; |
| 24 } |
| 25 |
| 26 td |
| 27 { |
| 28 padding: 0px; |
| 29 } |
| 30 |
| 31 |
| 32 |
| 33 table#first |
| 34 { |
| 35 border-right: red solid 100px; |
| 36 } |
| 37 |
| 38 table#first td |
| 39 { |
| 40 border-right: green solid 100px; |
| 41 } |
| 42 |
| 43 |
| 44 |
| 45 table#second > tbody |
| 46 { |
| 47 border-right: red solid 100px; |
| 48 } |
| 49 |
| 50 table#second td |
| 51 { |
| 52 border-right: green solid 100px; |
| 53 } |
| 54 |
| 55 |
| 56 |
| 57 table#third > thead |
| 58 { |
| 59 border-right: red solid 100px; |
| 60 } |
| 61 |
| 62 table#third td |
| 63 { |
| 64 border-right: green solid 100px; |
| 65 } |
| 66 |
| 67 |
| 68 |
| 69 table#fourth > tfoot |
| 70 { |
| 71 border-right: red solid 100px; |
| 72 } |
| 73 |
| 74 table#fourth td |
| 75 { |
| 76 border-right: green solid 100px; |
| 77 } |
| 78 |
| 79 |
| 80 |
| 81 table#fifth tr |
| 82 { |
| 83 border-right: red solid 100px; |
| 84 } |
| 85 |
| 86 table#fifth td |
| 87 { |
| 88 border-right: green solid 100px; |
| 89 } |
| 90 |
| 91 div#reference-overlapped-red |
| 92 { |
| 93 background-color: red; |
| 94 bottom: 100px; |
| 95 height: 100px; |
| 96 position: relative; |
| 97 width: 100px; |
| 98 z-index: -1; |
| 99 } |
| 100 ]]></style> |
| 101 |
| 102 </head> |
| 103 |
| 104 <body> |
| 105 |
| 106 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
| 107 |
| 108 <table id="first"> |
| 109 |
| 110 <colgroup><col></col><col></col></colgroup> |
| 111 |
| 112 <tbody> |
| 113 |
| 114 <tr> |
| 115 <td></td> <td></td> |
| 116 </tr> |
| 117 |
| 118 </tbody> |
| 119 |
| 120 </table> |
| 121 |
| 122 |
| 123 <table id="second"> |
| 124 |
| 125 <colgroup><col></col><col></col></colgroup> |
| 126 |
| 127 <tbody> |
| 128 |
| 129 <tr> |
| 130 <td></td> <td></td> |
| 131 </tr> |
| 132 |
| 133 </tbody> |
| 134 |
| 135 </table> |
| 136 |
| 137 |
| 138 <table id="third"> |
| 139 |
| 140 <colgroup><col></col><col></col></colgroup> |
| 141 |
| 142 <thead> |
| 143 |
| 144 <tr> |
| 145 <td></td> <td></td> |
| 146 </tr> |
| 147 |
| 148 </thead> |
| 149 |
| 150 </table> |
| 151 |
| 152 |
| 153 <table id="fourth"> |
| 154 |
| 155 <colgroup><col></col><col></col></colgroup> |
| 156 |
| 157 <tfoot> |
| 158 |
| 159 <tr> |
| 160 <td></td> <td></td> |
| 161 </tr> |
| 162 |
| 163 </tfoot> |
| 164 |
| 165 </table> |
| 166 |
| 167 |
| 168 |
| 169 <table id="fifth"> |
| 170 |
| 171 <colgroup><col></col><col></col></colgroup> |
| 172 |
| 173 <tbody> |
| 174 |
| 175 <tr> |
| 176 <td></td> <td></td> |
| 177 </tr> |
| 178 |
| 179 </tbody> |
| 180 |
| 181 </table> |
| 182 |
| 183 |
| 184 <div id="reference-overlapped-red"></div> |
| 185 |
| 186 </body> |
| 187 </html> |
OLD | NEW |