<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
div { | |
-webkit-transform:translateZ(0); | |
position: absolute; | |
top: 100px; | |
left: 0px; | |
width: 300px; | |
height: 300px; | |
background-color: white; | |
z-index: 2; | |
} | |
video { | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 272px; | |
height: 153px; | |
z-index: 3; | |
} | |
</style> | |
</head> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(true); | |
</script> | |
<body> | |
<!-- video controls should appear in their own layer --> | |
<video controls> | |
<source src="bogus.ogv" type="video/ogg"> | |
</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> | |