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

Unified Diff: LayoutTests/fast/canvas/canvas-shadow-source-in.html

Issue 658603002: 2D canvas: fix shadow rendering with compositing modes that require temp layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comment fix Created 6 years, 2 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 | « no previous file | LayoutTests/fast/canvas/canvas-shadow-source-in-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-shadow-source-in.html
diff --git a/LayoutTests/fast/canvas/canvas-shadow-source-in.html b/LayoutTests/fast/canvas/canvas-shadow-source-in.html
new file mode 100644
index 0000000000000000000000000000000000000000..5331ebba79f3b545e077166fea7e297041c2fc43
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-shadow-source-in.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<canvas id="c" width="200" height="200"></canvas>
+<script>
+ var canvas = document.getElementById("c");
+ var ctx = canvas.getContext("2d");
+ ctx.globalCompositeOperation = 'source-over';
+ ctx.fillStyle = 'black';
+ ctx.fillRect(50,50,200,100);
+ ctx.globalCompositeOperation = 'source-in';
+ ctx.shadowColor = 'blue';
+ ctx.shadowBlur = 10;
+ ctx.shadowOffsetX = -10;
+ ctx.shadowOffsetY = -10;
+ ctx.fillStyle = 'teal';
+ ctx.fillRect(100,100,100,100);
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-shadow-source-in-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698