OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 div { |
| 6 background: yellow; |
| 7 top: 100px; |
| 8 bottom: 100px; |
| 9 left: 100px; |
| 10 right: 100px; |
| 11 height: auto; |
| 12 width: auto; |
| 13 } |
| 14 ::backdrop { |
| 15 background: green; |
| 16 } |
| 17 </style> |
| 18 </head> |
| 19 <body> |
| 20 <div>Test that fullscreen elements are in the top layer. The test passes if |
| 21 you see a green backdrop behind this box when fullscreen.</div> |
| 22 <button>Go fullscreen</button> |
| 23 <script> |
| 24 div = document.querySelector('div'); |
| 25 document.querySelector('button').addEventListener('click', function() { |
| 26 div.webkitRequestFullscreen(); |
| 27 }); |
| 28 if (window.testRunner) { |
| 29 testRunner.waitUntilDone(); |
| 30 document.addEventListener('webkitfullscreenchange', function() { |
| 31 setTimeout(function() { |
| 32 testRunner.notifyDone(); |
| 33 }, 0); |
| 34 }); |
| 35 document.addEventListener('keydown', function() { div.webkitRequestFullscree
n(); }); |
| 36 eventSender.keyDown('a'); |
| 37 } |
| 38 </script> |
| 39 </body> |
| 40 </html> |
OLD | NEW |