summaryrefslogtreecommitdiffstats
path: root/layout/reftests/table-anonymous-boxes/338735-1.html
blob: a36f0e3a82c5bdc218f44880bc2e545811fb1709 (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
  #t {
    display: none;
  }
</style>
<script lang="JavaScript">
  function toggleLayer(id) {
      var s = document.getElementById(id).style;
      s.display = s.display ? "" : "block";
  }

  function doTest() {
    toggleLayer('t');
    document.body.offsetWidth;
    toggleLayer('t');
    document.body.offsetWidth;
    toggleLayer('t');
    document.documentElement.className = "";
  }
</script>
</head>
<body onload="doTest()">
<table style="width: 100%;" border="5">
  <tr>
          <td id="t">First row</td>
  </tr>
  <tr>
          <td>Second row</td>
  </tr>
</table>
</body>
</html>