3 <title>test with multiple controls having
"autofocus" set
</title>
5 input, input#test:focus { background:lime }
6 input:focus, input#test { background:red }
8 <script src=
"resources/common.js"></script>
9 <script language=
"JavaScript" type=
"text/javascript">
10 function log(message
) {
11 document
.getElementById("console").innerHTML
+= "<li>"+message
+"</li>";
15 if (window
.testRunner
)
16 testRunner
.dumpAsText();
18 if (document
.activeElement
== document
.getElementById("test"))
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
26 waitUntilLoadedAndAutofocused(test
);
30 <p>All form controls below should have a green background:
</p>
31 <p><input autofocus
id=
"test">
38 <ol id=
"console"></ol>