5 <title>Video with background color</title>
6 <style type="text/css" media="screen">
8 outline: 10px solid transparent; /* affects layer sizes */
15 background-color: rgba(0, 0, 128, 0.5);
23 <script type="text/javascript" charset="utf-8">
24 if (window.layoutTestController)
25 layoutTestController.waitUntilDone();
31 <img src="../resources/alpha-gradient-small.png">
33 <video autoplay loop></video>
35 <p>Top and bottom should look the same.</p>
37 <script type="text/javascript" charset="utf-8">
38 var video = document.getElementsByTagName('video')[0];
39 video.src = '../resources/alpha-gradient-small.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mov');
40 video.addEventListener('canplaythrough', function() {
41 if (window.layoutTestController)
42 layoutTestController.notifyDone();