layout/reftests/text-overflow/dynamic-change-1.html
author Margareta Eliza Balazs <ebalazs@mozilla.com>
Thu, 11 Jan 2018 22:32:27 +0200
changeset 398876 0524b54f7f9dc0568a55b5d70fef4180d4cb1838
parent 345908 b866630a4183b38c2c234508b1ca3b80f51d8595
permissions -rw-r--r--
Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE

<!DOCTYPE html>
<html class="reftest-wait">
  <div style="overflow: hidden; width: 130px; white-space: nowrap">
    Some long text that cannot possibly fit in 130 px, because it just can't.
  </div>

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