Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / autofocus-opera-007.html
blob7d9560ae21ab7bdaac0dc9b49af881f0c731b222
1 <html>
2 <head>
3 <title>"autofocus" and the blur() method</title>
4 <style>
5 input { background:lime }
6 input:focus { background:red }
7 </style>
8 <script language="JavaScript" type="text/javascript">
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
14 var gotBlur = false;
16 function log(message) {
17 document.getElementById("console").innerHTML += "<li>"+message+"</li>";
20 function switchBlur() {
21 gotBlur = true;
24 function test() {
25 if (gotBlur)
26 log("SUCCESS");
27 else
28 log("FAILURE");
29 if (window.testRunner)
30 testRunner.notifyDone();
32 </script>
33 </head>
34 <body>
35 <p>The form control below should have a green background:
36 <p><input autofocus onfocus="this.blur(); test();" onblur="switchBlur()">
37 <hr/>
38 <ol id="console"></ol>
39 </body>
40 </html>