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

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

Issue 769423008: Impl-side painting for svg/ layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated expectations Created 6 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <canvas width=100 height=100></canvas> 2 <canvas width=100 height=100></canvas>
3 <script> 3 <script>
4 var img = new Image(); 4 var img = new Image();
5 img.src = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><rect widt h="100" height="100" fill="#008000"/></svg>'; 5 img.src = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><rect widt h="100" height="100" fill="#008000"/></svg>';
6 var c = document.querySelector('canvas').getContext('2d'); 6 var c = document.querySelector('canvas').getContext('2d');
7 c.globalAlpha = 0.2; 7 c.globalAlpha = 0.5;
8 c.drawImage(img, 0, 0); 8 c.drawImage(img, 0, 0);
9 </script> 9 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698