mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
41
dom/plugins/test/reftest/plugin-canvas-alpha-zindex.html
Normal file
41
dom/plugins/test/reftest/plugin-canvas-alpha-zindex.html
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<style type="text/css">
|
||||
#one {
|
||||
position:absolute;
|
||||
left:0px; top:0px;
|
||||
z-index:1;
|
||||
}
|
||||
#two {
|
||||
position:absolute;
|
||||
top:100px; left:100px;
|
||||
// Set these using the canvas API
|
||||
// width:200px; height:200px;
|
||||
// background-color: rgb(255,0,0);
|
||||
z-index:0;
|
||||
}
|
||||
</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 = "rgb(255,0,0)";
|
||||
ctx.fillRect(0,0, 200,200);
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
paintCanvas();
|
||||
forceLoadPlugin('one');
|
||||
}
|
||||
</script>
|
||||
</style>
|
||||
</head>
|
||||
<body onload="doTest()">
|
||||
<canvas width="200" height="200" id="two"></canvas>
|
||||
<embed id="one" type="application/x-test" width="400" height="400" drawmode="solid" color="9900FF00"></embed>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue