Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / autofocus-opera-002.html
blob91dd1506e76d346aa76156135c513228be810c21
1 <html>
2 <head>
3 <title>dynamically inserted control with "autofocus" set</title>
4 <style>
5 input { background:red }
6 input:focus { background:lime }
7 </style>
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>";
14 function test() {
15 if (window.testRunner)
16 testRunner.dumpAsText();
18 if (document.activeElement == document.getElementsByTagName("input")[0])
19 log("SUCCESS");
20 else
21 log("FAILURE");
22 if (window.testRunner)
23 testRunner.notifyDone();
26 waitUntilLoadedAndAutofocused(test);
27 </script>
28 </head>
29 <body>
30 <p>FAIL (The script did not run.)</p>
31 <script>
32 document.getElementsByTagName('p')[0].innerHTML = "This form control should have a green background: <input autofocus>";
33 </script>
34 <hr>
35 <ol id="console"></ol>
36 </body>
37 </html>