Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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:1; |
michael@0 | 9 | } |
michael@0 | 10 | #two { |
michael@0 | 11 | position:absolute; |
michael@0 | 12 | top:100px; left:100px; |
michael@0 | 13 | // Set these using the canvas API |
michael@0 | 14 | // width:200px; height:200px; |
michael@0 | 15 | // background-color: rgb(255,0,0); |
michael@0 | 16 | z-index:0; |
michael@0 | 17 | } |
michael@0 | 18 | </style> |
michael@0 | 19 | <script type="text/javascript"> |
michael@0 | 20 | function paintCanvas() { |
michael@0 | 21 | var canvas = document.getElementById("two"); |
michael@0 | 22 | var ctx = canvas.getContext("2d"); |
michael@0 | 23 | ctx.fillStyle = "rgb(255,0,0)"; |
michael@0 | 24 | ctx.fillRect(0,0, 200,200); |
michael@0 | 25 | } |
michael@0 | 26 | </script> |
michael@0 | 27 | </style> |
michael@0 | 28 | </head> |
michael@0 | 29 | <body onload="paintCanvas();"> |
michael@0 | 30 | <canvas width="200" height="200" id="two"></canvas> |
michael@0 | 31 | <embed id="one" type="application/x-test" width="400" height="400" drawmode="solid" color="9900FF00"></embed> |
michael@0 | 32 | </body> |
michael@0 | 33 | </html> |
michael@0 | 34 |