Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>text-overflow: <string> in a textarea with field-sizing: content that stays below max-width</title>
<style>
textarea {
field-sizing: content;
max-width: 300px;
white-space: nowrap;
/* text-overflow: clip; is default */
}
</style>
<textarea>aaaa</textarea>