summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/video/video-controls-layer-creation-squashing-expected.html
blob: aaa3f6bd1a0c9c0f93a54dd647136f00aec0b027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE HTML>
<html>
<head>
<style>
    div {
        transform:translateZ(0);
        position: absolute;
        top: 100px;
        left: 0px;
        width: 300px;
        height: 300px;
        background-color: green;
        z-index: 2;
    }
    video {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 272px;
        height: 153px;
        z-index: 3;
    }
</style>
</head>
<script>
function runTest() {
    if (window.testRunner)
        testRunner.waitUntilDone(true);

    var video = document.querySelector('video');
    video.onerror = endTest;
    video.src = "bogus.ogv";
}

function endTest() {
    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
<body onload="runTest()">
        <!-- video controls should appear in their own layer -->
        <video controls>
        </video>

        <!-- this div is beneath the video in a stacking context and should through the video into compositing due to overlap -->
        <div></div>
    </body>
</html>