summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/586400-1.html
blob: 107079738c8557880cd21bd1eaf695db84659f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
  <head>
  <style>
    div.spacer {width:20px; height: 20px;}
    table {background-color: lime;}
    td {background-color: green;}
  </style>
  <script>
    function testIt() {
      document.body.offsetWidth;
      var table = document.getElementsByTagName("TABLE")[0];
      table.setAttribute("cellpadding", "30px");
    }
  </script>
  </head>
  <body onload="testIt();">
    <table><tr>
        <td> <div class="spacer"></div> </td></tr>
    </table>
  </body>
</html>