blob: 4c6b9029fe9165eb213478cc24cbda2cbdef2aac [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<style>
div {
position: absolute;
top: 100px;
left: 0px;
width: 300px;
height: 300px;
background-color: green;
}
video {
position: absolute;
top: 0px;
left: 0px;
width: 272px;
height: 153px;
}
</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()">
<!-- this div is beneath the video in a stacking context and should through the video into compositing due to overlap -->
<div></div>
<!-- video controls should appear in their own layer -->
<video controls>
</video>
</body>
</html>