1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30

content / test / data / gpu / pixel_video_nonroot.html [blame]

<!DOCTYPE HTML>
<html>
<head>
<title>Nonroot Video Test</title>
<style type="text/css">
.nomargin {
  margin: 0px auto;
}

.gradient {
  -webkit-mask-image: -webkit-gradient(
    linear, left 50%, right 50%,
    color-stop(0.00,  rgba(0,0,0,1)),
    color-stop(0.75,  rgba(0,0,0,1)),
    color-stop(0.80,  rgba(0,0,0,0)),
    color-stop(1.00,  rgba(0,0,0,0)));
}
</style>
<script src="pixel_video_test.js"></script>
</head>
<body onload="main()">
<div id="container" style="position:absolute; top:0px; left:0px;">
<video class="nomargin gradient" id="video">
<source src="/media/test/data/four-colors.mp4" type="video/mp4">
</video>
</div>
<div id="container" class="nomargin" style="position:absolute; top:0px; left:0px; width:30px; height:30px; background-color:black;">
</div>
</body>
</html>