summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/input-minlength-valid-before-change.html
blob: 21e6927926c7068dad94eae7410842b3abd9d35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE HTML>
<html>
  <!-- Test: input 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=''">
    <input id="input" minlength="5" value="foo">
  </body>
</html>