summaryrefslogtreecommitdiffstats
path: root/layout/reftests/columns/dynamic-change-with-overflow-1.html
blob: 8e73266e4c37191a12b585ae31dc13e9a8555481 (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; width: 130px">
    Some long text that cannot possibly fit in 130px.
  </div>

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