Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8">
<title>Textarea always preserves spaces</title>
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="match" href="textarea-always-preserves-spaces-001-ref.html">
<textarea style="white-space: nowrap;">a b</textarea>
<textarea style="white-space: nowrap;">a
b</textarea>
<textarea style="white-space: normal;">a b</textarea>
<textarea style="white-space: normal;">a
b</textarea>