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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color.html

Issue 1543593002: Forward fill and stroke styles from 2d canvas to canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove PaintFilterEffect::affectsTransparentPixels Created 4 years, 11 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 | third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color.html
new file mode 100644
index 0000000000000000000000000000000000000000..bfc161d4d9c0df5f539232e340336a41a4c8c74d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color.html
@@ -0,0 +1,26 @@
+<svg style="display: block; width: 0; height: 0">
+ <defs>
+ <filter id="merge">
+ <femerge>
+ <femergenode in="FillPaint"></femergenode>
+ <femergenode in="SourceGraphic"></femergenode>
+ </femerge>
+ </filter>
+ </defs>
+</svg>
+<canvas id="canvas" width="100" height="100"></canvas>
+<script>
+var canvas = document.getElementById('canvas');
+var ctx = canvas.getContext('2d');
+var canvas2 = document.createElement('canvas');
+canvas2.width = 20;
+canvas2.height = 20;
+var ctx2 = canvas2.getContext('2d');
+
+ctx2.fillStyle = '#00f';
+ctx2.fillRect(0, 0, canvas2.width, canvas.height);
+
+ctx.filter = 'url(#merge)';
+ctx.fillStyle = '#0f0';
+ctx.drawImage(canvas2, 40, 40);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-color-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698