summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/reftest/filters/units.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/test/reftest/filters/units.html')
-rw-r--r--dom/canvas/test/reftest/filters/units.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/canvas/test/reftest/filters/units.html b/dom/canvas/test/reftest/filters/units.html
new file mode 100644
index 0000000000..d12abdeb13
--- /dev/null
+++ b/dom/canvas/test/reftest/filters/units.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<body>
+<canvas id="canvas" width="500" height="500" style="width: 100px; height: 100px"></canvas>
+<script>
+
+var canvas = document.getElementById('canvas');
+var ctx = canvas.getContext('2d');
+
+ctx.filter = 'drop-shadow(0 50px black)';
+ctx.fillStyle = '#0f0';
+ctx.fillRect(125, 125, 250, 200);
+
+</script>
+</body>
+</html>