blob: a59295cf638d34539fbb7a9967d9d5bbe9e72fd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<!DOCTYPE html>
<html>
<head>
<style>
table {
width: 330px;
table-layout: fixed;
border-spacing: 0px;
}
td {
padding: 0px;
}
</style>
<script src="../../../resources/js-test.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function test()
{
description("Bug 20213: colspan in table-layout:fixed does not add up widths properly");
testCell = document.getElementById("tdColspan");
testTable = document.getElementsByTagName("table")[0];
shouldBe("window.getComputedStyle(testCell).width", "'320px'");
shouldBe("window.getComputedStyle(testTable).width", "'330px'");
isSuccessfullyParsed();
}
window.addEventListener("load", test);
</script>
</head>
<body>
<table>
<colgroup>
<col width="10">
<col width="300">
<col width="10">
<col width="10">
</colgroup>
<tbody>
<tr>
<td></td>
<td colspan="3" id="tdColspan"></td>
</tr>
</tbody>
</table>
<div id="description"></div>
<div id="console"></div>
</body>
</html>
|