textarea-pre-wrap-001-ref.html (1014B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test reference file</title> 4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> 5 <!-- pre-wrap-001-ref.html could probably be used instead, 6 but since textarea is a form control that's not fully specified, 7 using a separate reference just in case something is indeed different 8 is safer. --> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style> 11 textarea { 12 word-wrap: initial; /*deprecated alias*/ 13 overflow-wrap: initial; 14 line-break: initial; 15 word-break: initial; 16 margin: 0; 17 padding: 0; 18 border: none; 19 outline: none; 20 resize: none; 21 overflow: hidden; /* I don't want scrollbars, and overflow:visible isn't typically supported on textarea */ 22 23 font-size: 20px; 24 font-family: Ahem; 25 line-height: 1em; 26 color: green; 27 white-space: pre; 28 } 29 </style> 30 <body> 31 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 32 <textarea>XX 33 XX</textarea> 34 </body>