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

Unified Diff: LayoutTests/svg/canvas/canvas-draw-image-globalalpha.html

Issue 181633002: Apply .globalAlpha to SVG-images painted using <canvas> drawImage() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 10 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/canvas/canvas-draw-image-globalalpha-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/canvas/canvas-draw-image-globalalpha.html
diff --git a/LayoutTests/svg/canvas/canvas-draw-image-globalalpha.html b/LayoutTests/svg/canvas/canvas-draw-image-globalalpha.html
new file mode 100644
index 0000000000000000000000000000000000000000..b30f202388925d7bfb26744f58d8bbc26347f8ac
--- /dev/null
+++ b/LayoutTests/svg/canvas/canvas-draw-image-globalalpha.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<canvas width=100 height=100></canvas>
+<script>
+var img = new Image();
+img.src = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="#008000"/></svg>';
+var c = document.querySelector('canvas').getContext('2d');
+c.globalAlpha = 0.2;
+c.drawImage(img, 0, 0);
+</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/canvas/canvas-draw-image-globalalpha-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698