Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: LayoutTests/fast/canvas/canvas-filter-units.html

Issue 1194733002: Adding the 'filter' context attribute to 2D canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: applied corrections Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/canvas-filter-units.html
diff --git a/LayoutTests/fast/canvas/canvas-filter-units.html b/LayoutTests/fast/canvas/canvas-filter-units.html
new file mode 100644
index 0000000000000000000000000000000000000000..2dbc7f9f9e5df155b84d774cbe6098eed7f178c4
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-filter-units.html
@@ -0,0 +1,8 @@
+<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(0px 50px black)';
+ctx.fillStyle = '#0f0';
+ctx.fillRect(125, 125, 250, 200);
+</script>

Powered by Google App Engine
This is Rietveld 408576698