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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient-expected.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
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient-expected.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..ba7bbb9be6c33b3f9389e21182e0099f3aa758c9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-fill-paint-gradient-expected.html
@@ -0,0 +1,12 @@
+<canvas id="canvas" width="100" height="100"></canvas>
+<script>
+var canvas = document.getElementById('canvas');
+var ctx = canvas.getContext('2d');
+var gradient = ctx.createLinearGradient(0, 0, canvas.width, 0);
+gradient.addColorStop(0, '#0f0');
+gradient.addColorStop(1, '#00f');
+ctx.fillStyle = gradient;
+ctx.fillRect(0, 0, canvas.width, canvas.height);
+ctx.fillStyle = '#00f';
+ctx.fillRect(40, 40, 20, 20);
+</script>

Powered by Google App Engine
This is Rietveld 408576698