mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
50936b7afe
MozReview-Commit-ID: 8LnPTKVxxVc
20 lines
549 B
HTML
20 lines
549 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<table style="table-layout: fixed; width: 130px">
|
|
<tr>
|
|
<td style="overflow: hidden; white-space: nowrap;">
|
|
Some long text that cannot possibly fit in 130 px, because it just can't.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script>
|
|
onload = function() {
|
|
var td = document.querySelector("td");
|
|
// Make sure layout has happened.
|
|
var width = td.offsetWidth;
|
|
td.style.textOverflow = "ellipsis";
|
|
document.documentElement.className = "";
|
|
}
|
|
</script>
|
|
</html>
|