summaryrefslogtreecommitdiffstats
path: root/layout/tables/reftests/dynamic-text-indent-table-cell.html
blob: c49271a61fc8a2a81553dfe5ece4175207254154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html class="reftest-wait">
  <table>
    <tr>
      <td>
        Some text
      </td>
    </tr>
  </table>
  <script>
    onload = function() {
      var td = document.querySelector("td");
      // Make sure layout has happened.
      var width = td.offsetWidth;
      td.style.textIndent = "50px";
      document.documentElement.className = "";
    }
  </script>
</html>