Chromium Code Reviews| Index: LayoutTests/fast/canvas/canvas-filter-shadow.html |
| diff --git a/LayoutTests/fast/canvas/canvas-filter-shadow.html b/LayoutTests/fast/canvas/canvas-filter-shadow.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6b454fd370dc5ea46ac71bf6fc2416ed6435d277 |
| --- /dev/null |
| +++ b/LayoutTests/fast/canvas/canvas-filter-shadow.html |
| @@ -0,0 +1,10 @@ |
| +<canvas id="canvas" width="100" height="100"></canvas> |
| +<script> |
| +var canvas = document.getElementById('canvas'); |
| +var ctx = canvas.getContext('2d'); |
| +ctx.fillStyle = '#0f0'; |
| +ctx.filter = 'drop-shadow(0 10px black)'; |
|
Stephen White
2015/06/25 18:30:26
Nit: 0 -> 0px
|
| +ctx.shadowOffsetX = 10; |
| +ctx.shadowColor = '#ccc'; |
| +ctx.fillRect(20, 25, 50, 40); |
| +</script> |