OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html lang="en"> | 2 <html lang="en"> |
3 <head> | 3 <head> |
4 <title>Switch between display block and none on :focus</title> | 4 <title>Switch between display block and none on :focus</title> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 width: 100px; | 7 width: 100px; |
8 height: 100px; | 8 height: 100px; |
9 background-color: blue; | 9 background-color: blue; |
10 color: white; | 10 color: white; |
11 padding: 10px; | 11 padding: 10px; |
12 } | 12 } |
13 #button { | 13 #button { |
14 display: block; | 14 display: block; |
15 width: 200px; | 15 width: 200px; |
16 height: 50px; | 16 height: 50px; |
17 } | 17 } |
18 #button:focus { | 18 #button:focus { |
19 display: none; | 19 display: none; |
20 } | 20 } |
21 </style> | 21 </style> |
22 | 22 |
23 » <script src="../js/resources/js-test-pre.js"></script> | 23 » <script src="../../resources/js-test.js"></script> |
24 </head> | 24 </head> |
25 | 25 |
26 <script type="text/javascript"> | 26 <script type="text/javascript"> |
27 if (window.testRunner) | 27 if (window.testRunner) |
28 testRunner.waitUntilDone(); | 28 testRunner.waitUntilDone(); |
29 | 29 |
30 function beginTest() { | 30 function beginTest() { |
31 if (window.eventSender) { | 31 if (window.eventSender) { |
32 var button = document.getElementById("button"); | 32 var button = document.getElementById("button"); |
33 button.focus(); | 33 button.focus(); |
(...skipping 21 matching lines...) Expand all Loading... |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 </script> | 58 </script> |
59 | 59 |
60 <body onload="beginTest()"> | 60 <body onload="beginTest()"> |
61 <button type="button" id="button">When you hit TAB, this button should d
isappear.</button> | 61 <button type="button" id="button">When you hit TAB, this button should d
isappear.</button> |
62 <div class="box">This is here to show the layout being recomputed</div> | 62 <div class="box">This is here to show the layout being recomputed</div> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |