3 <!-- Test: textarea with minlength is -moz-ui-valid if the user edits and it's not too short -->
6 :-moz-ui-valid { background-color:green; }
7 :-moz-ui-invalid { background-color:red; }
8 * { background-color:white; }
10 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
13 var textarea
= document
.getElementById('textarea');
14 textarea
.setSelectionRange(textarea
.value
.length
, textarea
.value
.length
)
16 sendString("o"); // so that it becomes invalid first
20 textarea
.blur(); // to hide the caret
21 document
.documentElement
.className
='';
25 <body onload=
"runTest()">
26 <textarea id=
"textarea" minlength=
"3">f
</textarea>