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

Unified Diff: LayoutTests/fast/canvas/canvas-filter-units-off-screen.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-off-screen.html
diff --git a/LayoutTests/fast/canvas/canvas-filter-units-off-screen.html b/LayoutTests/fast/canvas/canvas-filter-units-off-screen.html
new file mode 100644
index 0000000000000000000000000000000000000000..621851ad25716ea8355f253536397f7e80197fcd
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-filter-units-off-screen.html
@@ -0,0 +1,14 @@
+<body>
+<script>
+var canvas = document.createElement('canvas');
+canvas.width = 500;
+canvas.height = 500;
+canvas.style.width = '100px';
+canvas.style.height = '100px';
+var ctx = canvas.getContext('2d');
+ctx.filter = 'drop-shadow(0px 50px black)';
+ctx.fillStyle = '#0f0';
+ctx.fillRect(125, 125, 250, 200);
+document.body.appendChild(canvas);
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698