4 <script src=
"../../resources/js-test.js"></script>
7 <h3>Test for chromium bug :
<a href=
"https://code.google.com/p/chromium/issues/detail?id=29502">29502</a>. border-spacing is doubled between table-row-groups.
</h3>
8 <h4>Border-spacing was adding twice, One for bottom of first section and another for top of second section. But bottom of first section and top of second section border spacing should be common.
</h4>
9 Distance between all rows in the table should be same.
13 <table border=
"5" style=
"border-spacing:10px">
16 <th id =
"td0Id"> row0 head0
</th>
22 <td id =
"td1Id"> row0 col0
</td>
26 <td id =
"td2Id"> row1 col0
</td>
32 <td id =
"td3Id"> row0 col0
</td>
36 <td id =
"td4Id"> row1 col0
</td>
42 <td id =
"td5Id"> row0 foot0
</td>
49 <div id=
"console"></div>
52 function testBorderSpacing(index
)
54 var afterRow
= document
.getElementById('td' + index
+ 'Id');
55 var beforeRow
= document
.getElementById('td' + (index
- 1) + 'Id');
56 var borderSpacing
= afterRow
.offsetTop
- beforeRow
.offsetTop
- beforeRow
.offsetHeight
;
57 shouldBe(borderSpacing
.toString(), "10");
60 for (var i
= 1; i
< 6; i
++) {
61 document
.getElementById('console').appendChild(document
.createElement('br'));