Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <html> |
michael@0 | 2 | <!-- This testcase asserts that in all the tables below, all 500px of the -- |
michael@0 | 3 | -- orange colspanning cell's specified width should go to its first -- |
michael@0 | 4 | -- spanned column. Its second spanned column receives none of the -- |
michael@0 | 5 | -- 500px, and it only gets a small amount of width by taking half of the -- |
michael@0 | 6 | -- light-blue cell's preferred width. -- |
michael@0 | 7 | -- -- |
michael@0 | 8 | -- This happens because the first column starts with nonzero pref-width, -- |
michael@0 | 9 | -- whereas the second and third columns have zero pref-width. Hence, -- |
michael@0 | 10 | -- the orange colspanning cell favors the first column over the second, -- |
michael@0 | 11 | -- whereas the lightblue colspanning cell distributes its width equally -- |
michael@0 | 12 | -- between the second and third columns. --> |
michael@0 | 13 | <head><style> |
michael@0 | 14 | tr { height: 1em; } |
michael@0 | 15 | td.wide { width: 500px; } |
michael@0 | 16 | |
michael@0 | 17 | td.orange { background: orange; } |
michael@0 | 18 | td.purple { background: purple; } |
michael@0 | 19 | td.teal { background: teal; } |
michael@0 | 20 | td.blue { background: lightblue; } |
michael@0 | 21 | </style></head> |
michael@0 | 22 | <body> |
michael@0 | 23 | <p>(x,x) labels indicate the column & row order of the orange cell.</p> |
michael@0 | 24 | |
michael@0 | 25 | <br/>(0,0) |
michael@0 | 26 | <table cellpadding="0" cellspacing="0"> |
michael@0 | 27 | <tr> |
michael@0 | 28 | <td class="orange wide" colspan="2"></td> |
michael@0 | 29 | <td class="purple"></td> |
michael@0 | 30 | </td> |
michael@0 | 31 | </tr><tr> |
michael@0 | 32 | <td class="teal">x</td> |
michael@0 | 33 | <td class="blue" colspan="2">y z</td> |
michael@0 | 34 | </tr> |
michael@0 | 35 | </table> |
michael@0 | 36 | |
michael@0 | 37 | <br/>(0,1) |
michael@0 | 38 | <table cellpadding="0" cellspacing="0"> |
michael@0 | 39 | <tr> |
michael@0 | 40 | <td class="teal">x</td> |
michael@0 | 41 | <td class="blue" colspan="2">y z</td> |
michael@0 | 42 | </td> |
michael@0 | 43 | </tr><tr> |
michael@0 | 44 | <td class="orange wide" colspan="2"></td> |
michael@0 | 45 | <td class="purple"></td> |
michael@0 | 46 | </tr> |
michael@0 | 47 | </table> |
michael@0 | 48 | |
michael@0 | 49 | <br/>(1,0) |
michael@0 | 50 | <table cellpadding="0" cellspacing="0"> |
michael@0 | 51 | <tr> |
michael@0 | 52 | <td class="purple"></td> |
michael@0 | 53 | <td class="orange wide" colspan="2"></td> |
michael@0 | 54 | </td> |
michael@0 | 55 | </tr><tr> |
michael@0 | 56 | <td class="blue" colspan="2">y z</td> |
michael@0 | 57 | <td class="teal">x</td> |
michael@0 | 58 | </tr> |
michael@0 | 59 | </table> |
michael@0 | 60 | |
michael@0 | 61 | <br/>(1,1) |
michael@0 | 62 | <table cellpadding="0" cellspacing="0"> |
michael@0 | 63 | <tr> |
michael@0 | 64 | <td class="blue" colspan="2">y z</td> |
michael@0 | 65 | <td class="teal">x</td> |
michael@0 | 66 | </td> |
michael@0 | 67 | </tr><tr> |
michael@0 | 68 | <td class="purple"></td> |
michael@0 | 69 | <td class="orange wide" colspan="2"></td> |
michael@0 | 70 | </tr> |
michael@0 | 71 | </table> |
michael@0 | 72 | </body> |
michael@0 | 73 | </html> |