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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/paint2d-gradient-expected.html

Issue 2868003002: CSSPaint: Move layout tests in csspaint/ to http/tests/csspaint/ (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <canvas id ="output" width="200" height="100"></canvas>
5 <script>
6 var canvas = document.getElementById('output');
7 var ctx = canvas.getContext('2d');
8
9 var linearGradient = ctx.createLinearGradient(0, 0, 100, 100);
10 linearGradient.addColorStop(0, 'blue');
11 linearGradient.addColorStop(0.5, 'red');
12 linearGradient.addColorStop(1, 'white');
13 ctx.fillStyle = linearGradient;
14 ctx.fillRect(0, 0, 100, 100);
15
16 var radialGradient = ctx.createRadialGradient(150, 50, 0, 150, 50, 50);
17 radialGradient.addColorStop(0, 'blue');
18 radialGradient.addColorStop(0.5, 'red');
19 radialGradient.addColorStop(1, 'white');
20 ctx.fillStyle = radialGradient;
21 ctx.fillRect(100, 0, 100, 100);
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698