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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <style>* { margin: 0; padding: 0; }</style>
3 <canvas id="canvas" width="200" height="200"></canvas>
4 <script>
5 var canvas = document.getElementById('canvas');
6 var ctx = canvas.getContext('2d');
7 var width = canvas.width;
8 var height = canvas.height;
9
10 ctx.globalCompositeOperation = 'lighter';
11 ctx.fillStyle = '#f00';
12 ctx.fillRect(0,0,width,height);
13
14 gradient = ctx.createLinearGradient(0, 0, 0, height);
15 gradient.addColorStop(0, "#0f0");
16 gradient.addColorStop(1, "#00f");
17 ctx.fillStyle = gradient;
18 ctx.fillRect(0, 0, width, height);
19 </script>
OLDNEW
« 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