Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / virtual / android / fullscreen / video-fixed-background.html
1 <body style="background:linear-gradient(red,yellow); background-attachment:fixed;">
2     Overlay fullscreen video should remove fixed background layer.
3     <video id="video"></video>
4     <script>
5         if (window.internals)
6             runPixelTests = true;
7     </script>
8     <script src="../../../fullscreen/full-screen-test.js"></script>
9     <script src="../../../media/media-file.js"></script>
10     <script>
11         setSrcById("video", findMediaFile("video", "../../../media/content/test"));
12         var video = document.getElementById('video');
13         // Bail out early if the full screen API is not enabled or is missing:
14         if (Element.prototype.webkitRequestFullScreen == undefined) {
15             logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
16             endTest();
17         } else {
18             waitForEventAndEnd(document, 'webkitfullscreenchange');
19             runWithKeyDown(function(){video.webkitRequestFullScreen()});
20         }
21     </script>
22 </body>