1
0
Fork 0
firefox/layout/reftests/text-overflow/dynamic-change-1.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
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>