3 <title>basic
"autofocus" test
</title>
5 input { background:red }
6 input:focus { background:lime }
8 <script language=
"JavaScript" type=
"text/javascript">
9 function log(message
) {
10 document
.getElementById("console").innerHTML
+= "<li>"+message
+"</li>";
14 if (window
.layoutTestController
)
15 layoutTestController
.dumpAsText();
17 if (document
.activeElement
== document
.getElementsByTagName("input")[0])
24 <body onload=
"test()">
25 <p>This form control should have a green background and active state:
<input autofocus
>
27 <ol id=
"console"></ol>