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

Unified Diff: LayoutTests/svg/filters/feComposite-operator-lighter-expected.html

Issue 779963002: Add the 'lighter' composite operation to feComposite. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/filters/feComposite-operator-lighter.svg ('k') | Source/core/svg/SVGFECompositeElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/filters/feComposite-operator-lighter-expected.html
diff --git a/LayoutTests/svg/filters/feComposite-operator-lighter-expected.html b/LayoutTests/svg/filters/feComposite-operator-lighter-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..561ade1582d32ad719ea2afd947e08d51e6ab86b
--- /dev/null
+++ b/LayoutTests/svg/filters/feComposite-operator-lighter-expected.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<style>* { margin: 0; padding: 0; }</style>
+<canvas id="canvas" width="200" height="200"></canvas>
+<script>
+var canvas = document.getElementById('canvas');
+var ctx = canvas.getContext('2d');
+var width = canvas.width;
+var height = canvas.height;
+
+ctx.globalCompositeOperation = 'lighter';
+ctx.fillStyle = '#f00';
+ctx.fillRect(0,0,width,height);
+
+gradient = ctx.createLinearGradient(0, 0, 0, height);
+gradient.addColorStop(0, "#0f0");
+gradient.addColorStop(1, "#00f");
+ctx.fillStyle = gradient;
+ctx.fillRect(0, 0, width, height);
+</script>
« no previous file with comments | « LayoutTests/svg/filters/feComposite-operator-lighter.svg ('k') | Source/core/svg/SVGFECompositeElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698