Bug 1934520 - [devtools] Avoid errors in document-events webconsole listeners for...
[gecko.git] / layout / reftests / text-overflow / dynamic-change-1.html
blobd2c6c3a9e2dcefe47350d38f05d1279192886dec
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <div style="overflow: hidden; width: 130px; white-space: nowrap">
4 Some long text that cannot possibly fit in 130 px, because it just can't.
5 </div>
7 <script>
8 onload = function() {
9 var div = document.querySelector("div");
10 // Make sure layout has happened.
11 window.width = div.offsetWidth;
12 div.style.textOverflow = "ellipsis";
13 document.documentElement.className = "";
15 </script>
16 </html>