summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/textarea-minlength-valid-before-change.html
blob: 6fd7ad9799f059d95ae83b4881447b4ec165c583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE HTML>
<html>
  <!-- Test: textarea with minlength is valid until the user edits it, even if it's too short -->
  <head>
    <style>
      :valid { background-color:green; }
      :invalid { background-color:red; }
      * { background-color:white; }
    </style>
  </head>
  <body onload="document.documentElement.className=''">
    <textarea id="textarea" minlength="5">foo</textarea>
  </body>
</html>