Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / forms / autofocus-opera-001.html
blobe8497c7acde612a0b5d4dd8bb9b57e55301b6e67
1 <html>
2 <head>
3 <title>basic "autofocus" test</title>
4 <style>
5 input { background:red }
6 input:focus { background:lime }
7 </style>
8 <script language="JavaScript" type="text/javascript">
9 function log(message) {
10 document.getElementById("console").innerHTML += "<li>"+message+"</li>";
13 function test() {
14 if (window.layoutTestController)
15 layoutTestController.dumpAsText();
17 if (document.activeElement == document.getElementsByTagName("input")[0])
18 log("SUCCESS");
19 else
20 log("FAILURE");
22 </script>
23 </head>
24 <body onload="test()">
25 <p>This form control should have a green background and active state: <input autofocus>
26 <hr>
27 <ol id="console"></ol>
28 </body>
29 </html>