Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<title>Textarea with text-overflow: ellipsis should remove ellipsis when scrolled to end</title>
<link rel="match" href="textarea-text-overflow-ellipsis-scroll-ref.html">
<style>
textarea {
width: 100px;
white-space: nowrap;
text-overflow: ellipsis;
font-family: monospace;
font-size: 20px;
}
</style>
<textarea>01234567890123456789</textarea>
<script>
requestAnimationFrame(() => {
const textarea = document.querySelector('textarea');
// Scroll to end
textarea.scrollLeft = textarea.scrollWidth;
document.documentElement.classList.remove('reftest-wait');
});
</script>
</html>