gecko-dev/layout/reftests/text-overflow/dynamic-change-1.html

17 строки
478 B
HTML

<!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>