Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / video-fixed-at-top-left.html
blobfc22d5757856e237c3d7ead1f9bd90651b58b50a
1 <!DOCTYPE html>
3 This test verifies videos in fullscreen mode are not affected by CSS top/left properties.
4 <video id="video" style="left:100px; top:100px;"></video>
6 <script src="full-screen-test.js"></script>
7 <script>
8 var clientRect;
9 var video = document.getElementById('video');
11 waitForEventAndEnd(document, 'webkitfullscreenchange', function(){
12 clientRect = video.getBoundingClientRect();
13 testExpected('clientRect.left', 0)
14 testExpected('clientRect.top', 0)
15 });
17 runWithKeyDown(function(){
18 video.webkitRequestFullscreen()
19 });
20 </script>