OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="full-screen-test.js"></script> |
| 3 <script> |
| 4 function runTest() { |
| 5 document.offsetWidth; |
| 6 frame.contentDocument.offsetWidth; |
| 7 var videoEnteredFullScreen = function() { |
| 8 test("getComputedStyle(ancestor).position == 'static'"); |
| 9 endTest(); |
| 10 }; |
| 11 waitForEvent(frame.contentDocument, "webkitfullscreenchange", videoEnter
edFullScreen); |
| 12 |
| 13 test("getComputedStyle(ancestor).position == 'relative'"); |
| 14 |
| 15 runWithKeyDown(function(){ |
| 16 frame.contentDocument.querySelector("video").webkitRequestFullScreen
(); |
| 17 }); |
| 18 } |
| 19 </script> |
| 20 <div id="ancestor" style="position:relative"> |
| 21 <iframe allowfullscreen id="frame" src="data:text/html,<video></video>" onlo
ad="runTest()"></iframe> |
| 22 </div> |
OLD | NEW |