blob: 9994d4e040b4e95055a37ba27bf2531e79416c9e [file] [log] [blame]
<!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.dumpAsTextWithPixelResults();
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>