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