| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 ::backdrop { | |
| 6 background: green; | |
| 7 } | |
| 8 </style> | |
| 9 </head> | |
| 10 <body> | |
| 11 <p>Test that fullscreen object elements get a ::backdrop. You should see a green
background when the object element is fullscreen.</p> | |
| 12 <object type="application/x-shockwave-flash" data="../plugins/resources/simple_b
lank.swf" width="100" height="100"></object> | |
| 13 <button>Go fullscreen</button> | |
| 14 <script> | |
| 15 obj = document.querySelector('object'); | |
| 16 document.querySelector('button').addEventListener('click', function() { | |
| 17 obj.webkitRequestFullscreen(); | |
| 18 }); | |
| 19 if (window.testRunner) { | |
| 20 testRunner.waitUntilDone(); | |
| 21 document.addEventListener('webkitfullscreenchange', function() { | |
| 22 setTimeout(function() { | |
| 23 testRunner.notifyDone(); | |
| 24 }, 0); | |
| 25 }); | |
| 26 document.addEventListener('keydown', function() { obj.webkitRequestFullscree
n(); }); | |
| 27 eventSender.keyDown('a'); | |
| 28 } | |
| 29 </script> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |