summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/select/dynamic-text-overflow-1.html
blob: 4d954f69815f7117757031d0fa9e8653848e362a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html class="reftest-wait">
  <select style="width: 100px; overflow: hidden;">
    <option selected>Text that is long enough that it totally overflows<option>
  </select>
  <script>
    onload = function() {
      var s = document.querySelector("select");
      window.w = s.offsetWidth;
      s.style.textOverflow = "ellipsis";
      document.documentElement.className = "";
    }
  </script>
</html>