summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-bordercollapse/1384602-1a.html
blob: eb58374c9b78de1c4dad25a5036c2f7fe0219496 (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
<!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() {
    document.body.offsetWidth;
    var row = document.getElementById("target");
    row.innerHTML = "<td>1</td><td>2</td><!--This comment is needed--><td>3</td><td>4</td>";
  }
</script>