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