summaryrefslogtreecommitdiffstats
path: root/gfx/tests/reftest/1801588-1.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gfx/tests/reftest/1801588-1.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/gfx/tests/reftest/1801588-1.html b/gfx/tests/reftest/1801588-1.html
new file mode 100644
index 0000000000..d4081f1804
--- /dev/null
+++ b/gfx/tests/reftest/1801588-1.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <canvas id="canvas" width="100" height="100"></canvas>
+ <script>
+ var c = document.getElementById("canvas");
+ var ctx = c.getContext("2d");
+ ctx.fillStyle = "red";
+ ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
+
+ ctx.globalCompositeOperation = "copy";
+ ctx.fillStyle = "green";
+ ctx.fillRect(0, 0, 50, 50);
+ </script>
+ </body>
+</html>