summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text-indent/dynamic-change-with-overflow-1.html
blob: 97d6c69f705d8ec1f977f636ff894156468fb8a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html class="reftest-wait">
  <div style="overflow: hidden;">
    Some text.
  </div>

  <script>
    onload = function() {
      var div = document.querySelector("div");
      // Make sure layout has happened.
      window.width = div.offsetWidth;
      div.style.textIndent = "50px";
      document.documentElement.className = "";
    }
  </script>
</html>