Index: LayoutTests/fast/canvas/canvas-filter-units-em.html |
diff --git a/LayoutTests/fast/canvas/canvas-filter-units-em.html b/LayoutTests/fast/canvas/canvas-filter-units-em.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d0a9d7a22467fd1771cf644eb17d2951bbc275b5 |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/canvas-filter-units-em.html |
@@ -0,0 +1,13 @@ |
+<canvas id="canvas" width="100" height="100"></canvas> |
+<script> |
+var canvas = document.getElementById('canvas'); |
+var ctx = canvas.getContext('2d'); |
+ctx.font = '20px sans-serif'; |
+ctx.filter = 'drop-shadow(0 .5em black)'; |
+ctx.fillStyle = '#0f0'; |
+ctx.fillRect(25, 25, 25, 40); |
+canvas.style.fontSize = '5px'; |
+ctx.font = '4em sans-serif'; |
+ctx.filter = 'drop-shadow(0 .5em black)'; |
Stephen White
2015/06/25 18:30:27
Nit: 0 -> 0em
|
+ctx.fillRect(50, 25, 25, 40); |
+</script> |