OLD | NEW |
1 <style> | 1 <!DOCTYPE html> |
2 body { | |
3 font-family: Ahem; | |
4 -webkit-font-smoothing: none; | |
5 } | |
6 </style> | |
7 | 2 |
8 <div> | 3 <div> |
9 <span>1</span> | 4 <span>1</span> |
10 <span id='c2'>2</span> | 5 <span id='c2'>2</span> |
11 </div> | 6 </div> |
12 | 7 |
13 <script> | 8 <script> |
14 if ("webkitRequestFullScreen" in Element.prototype) { | 9 if ('webkitRequestFullScreen' in Element.prototype) { |
15 if (window.testRunner) | 10 if (window.testRunner) |
16 testRunner.waitUntilDone(); | 11 testRunner.waitUntilDone(); |
17 | 12 |
18 var callback; | 13 var callback; |
19 var fullscreenChanged = function(event) | 14 var fullscreenChanged = function(event) |
20 { | 15 { |
21 if (callback) | 16 if (callback) |
22 callback(event) | 17 callback(event) |
23 }; | 18 }; |
24 document.addEventListener('webkitfullscreenchange', fullscreenChanged); | 19 document.addEventListener('webkitfullscreenchange', fullscreenChanged); |
(...skipping 15 matching lines...) Expand all Loading... |
40 | 35 |
41 callback = spanEnteredFullScreen; | 36 callback = spanEnteredFullScreen; |
42 | 37 |
43 document.addEventListener('keydown', function () { | 38 document.addEventListener('keydown', function () { |
44 span.webkitRequestFullScreen(); | 39 span.webkitRequestFullScreen(); |
45 }); | 40 }); |
46 if (window.eventSender) | 41 if (window.eventSender) |
47 eventSender.keyDown('a'); | 42 eventSender.keyDown('a'); |
48 } | 43 } |
49 </script> | 44 </script> |
OLD | NEW |