summaryrefslogtreecommitdiffstats
path: root/dom/plugins/test/reftest/plugin-busy-alpha-zindex.html
blob: e339dd26694c27ee971960b60fc7cd424f7fc987 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html class="reftest-wait">
<head>
  <style type="text/css">
#one {
  position:absolute;
  left:0px; top:0px;
  z-index:4;
}
#two {
  position:absolute;
  top:100px; left:100px;
  background-color:rgb(0,0,0,0);
  z-index:3;
}
#three {
  position:absolute;
  left:100px; top:100px;
  width:200px; height:200px;
  background-color: rgb(255,0,0);
  opacity:0.6;
  z-index:2;
}
#four {
  position:absolute;
  top:100px; left:100px;
  z-index:1;
}
  </style>
  <script src="utils.js" type="text/javascript">
  </script>
  <script type="text/javascript">
function paintCanvas() {
  var canvas = document.getElementById("two");
  var ctx = canvas.getContext("2d");
  ctx.fillStyle = "rgba(255,0,0, 0.6)";
  ctx.fillRect(0,0, 200,200);
}

  function doTest() {
    paintCanvas();
    forceLoadPlugin(['one', 'four']);
  }
  </script>
</style>
</head>
<body onload="doTest();">
  <embed id="four" type="application/x-test" width="200" height="200"
         drawmode="solid" color="FFFF0000"></embed>
  <div id="three"></div>
  <canvas id="two" width="200" height="200"></canvas>
  <embed id="one" type="application/x-test" width="400" height="400"
         drawmode="solid" color="9900FF00"></embed>
</body>
</html>