I'm trying to do this:
<video id="test" loop autoplay>
<source src="assets/videos/h264.mp4" type="video/mp4">
<source src="assets/videos/h264.ogv" type="video/ogv">
<source src="assets/videos/h264.webm" type="video/webm">
</video>
CSS:
#test {
background:red;
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
bottom:0;
right:0;
}
#test:after {
content: "";
background: #000;
position:fixed;
top:0;
left:0;
bottom:0;
right:0;
height:100%;
width:100%;
z-index:1;
}
Why is this not working? Looks like this for me … http://jsfiddle.net/13knrneg/
If I replace the video tag with a div it works 100%. What am I misunderstanding here?