Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset=utf-8>
<title>Textarea placeholder honors textarea's text-overflow</title>
<link rel=author href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel=author href="https://mozilla.com" title="Mozilla">
<link rel=mismatch href="placeholder-white-space-notref.html">
<style>
textarea {
white-space: nowrap;
text-overflow: ellipsis;
max-width: 100px;
}
</style>
<textarea placeholder="This is a really long string that needs to be truncated"></textarea>