summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fullscreen/video-fixed-at-top-left.html
blob: fc22d5757856e237c3d7ead1f9bd90651b58b50a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>

This test verifies videos in fullscreen mode are not affected by CSS top/left properties.
<video id="video" style="left:100px; top:100px;"></video>

<script src="full-screen-test.js"></script>
<script>
var clientRect;
var video = document.getElementById('video');

waitForEventAndEnd(document, 'webkitfullscreenchange', function(){
    clientRect = video.getBoundingClientRect();
    testExpected('clientRect.left', 0)
    testExpected('clientRect.top', 0)
});

runWithKeyDown(function(){
    video.webkitRequestFullscreen()
});
</script>