dom/plugins/test/reftest/plugin-busy-alpha-zindex.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <!doctype html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <style type="text/css">
michael@0 5 #one {
michael@0 6 position:absolute;
michael@0 7 left:0px; top:0px;
michael@0 8 z-index:4;
michael@0 9 }
michael@0 10 #two {
michael@0 11 position:absolute;
michael@0 12 top:100px; left:100px;
michael@0 13 background-color:rgb(0,0,0,0);
michael@0 14 z-index:3;
michael@0 15 }
michael@0 16 #three {
michael@0 17 position:absolute;
michael@0 18 left:100px; top:100px;
michael@0 19 width:200px; height:200px;
michael@0 20 background-color: rgb(255,0,0);
michael@0 21 opacity:0.6;
michael@0 22 z-index:2;
michael@0 23 }
michael@0 24 #four {
michael@0 25 position:absolute;
michael@0 26 top:100px; left:100px;
michael@0 27 z-index:1;
michael@0 28 }
michael@0 29 </style>
michael@0 30 <script type="text/javascript">
michael@0 31 function paintCanvas() {
michael@0 32 var canvas = document.getElementById("two");
michael@0 33 var ctx = canvas.getContext("2d");
michael@0 34 ctx.fillStyle = "rgba(255,0,0, 0.6)";
michael@0 35 ctx.fillRect(0,0, 200,200);
michael@0 36 }
michael@0 37 </script>
michael@0 38 </style>
michael@0 39 </head>
michael@0 40 <body onload="paintCanvas();">
michael@0 41 <embed id="four" type="application/x-test" width="200" height="200"
michael@0 42 drawmode="solid" color="FFFF0000"></embed>
michael@0 43 <div id="three"></div>
michael@0 44 <canvas id="two" width="200" height="200"></canvas>
michael@0 45 <embed id="one" type="application/x-test" width="400" height="400"
michael@0 46 drawmode="solid" color="9900FF00"></embed>
michael@0 47 </body>
michael@0 48 </html>
michael@0 49

mercurial