summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-bordercollapse/1384602-1b.html
blob: bd2c9689754346c15569d637163995c6b99472d0 (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
<!DOCTYPE html>
<style>
  table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
  }
</style>
<table>
  <tbody>
    <tr>
      <td colspan="4">Spanning.</td>
    </tr>
  </tbody>
  <tbody>
    <tr id="target"></tr>
  </tbody>
</table>
<script>
  onload = function() {
    var row = document.getElementById("target");
    for (var i = 1; i <= 4; ++i) {
      document.body.offsetWidth;
      var cell = document.createElement("td");
      cell.textContent = i;
      row.appendChild(cell);
    }
  }
</script>