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

Side by Side Diff: third_party/WebKit/LayoutTests/csspaint/paint2d-transform-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="200"></canvas>
5 <script>
6 var canvas = document.getElementById('output');
7 var ctx = canvas.getContext('2d');
8
9 ctx.fillStyle = 'green';
10 ctx.transform(1, 0.5, 0, 1, 20, 20);
11 ctx.fillRect(0, 0, 50, 50);
12
13 ctx.resetTransform();
14
15 ctx.fillStyle = 'blue';
16 ctx.translate(150, 60);
17 ctx.rotate(60 * Math.PI / 180);
18 ctx.scale(1.5, 1);
19 ctx.fillRect(0, 0, 50, 50);
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698