Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
|
esprehn
2015/09/24 20:17:01
leave out html, head and body
dsinclair
2015/09/28 17:14:57
Done.
| |
| 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'); | |
|
esprehn
2015/09/24 20:17:01
object
dsinclair
2015/09/28 17:14:57
Done.
| |
| 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() { | |
|
esprehn
2015/09/24 20:17:01
ditto, don't wait with setTimeout(0)
dsinclair
2015/09/28 17:14:57
Done.
| |
| 23 testRunner.notifyDone(); | |
| 24 }, 0); | |
| 25 }); | |
| 26 document.addEventListener('keydown', function() { obj.webkitRequestFullscree n(); }); | |
| 27 eventSender.keyDown('a'); | |
|
esprehn
2015/09/24 20:17:01
ditto, this is more complex than needed
dsinclair
2015/09/28 17:14:57
Done.
| |
| 28 } | |
| 29 </script> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |