1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/reftest/plugin-canvas-alpha-zindex.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +<!doctype html> 1.5 +<html> 1.6 +<head> 1.7 + <style type="text/css"> 1.8 +#one { 1.9 + position:absolute; 1.10 + left:0px; top:0px; 1.11 + z-index:1; 1.12 +} 1.13 +#two { 1.14 + position:absolute; 1.15 + top:100px; left:100px; 1.16 +// Set these using the canvas API 1.17 +// width:200px; height:200px; 1.18 +// background-color: rgb(255,0,0); 1.19 + z-index:0; 1.20 +} 1.21 + </style> 1.22 + <script type="text/javascript"> 1.23 +function paintCanvas() { 1.24 + var canvas = document.getElementById("two"); 1.25 + var ctx = canvas.getContext("2d"); 1.26 + ctx.fillStyle = "rgb(255,0,0)"; 1.27 + ctx.fillRect(0,0, 200,200); 1.28 +} 1.29 + </script> 1.30 +</style> 1.31 +</head> 1.32 +<body onload="paintCanvas();"> 1.33 + <canvas width="200" height="200" id="two"></canvas> 1.34 + <embed id="one" type="application/x-test" width="400" height="400" drawmode="solid" color="9900FF00"></embed> 1.35 +</body> 1.36 +</html> 1.37 +