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

Side by Side Diff: LayoutTests/fast/canvas/canvas-state-stack-simple-expected.html

Issue 501353002: Transfer canvas state to the next frame with noticable restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Release candidate Created 6 years, 3 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 <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <script>
5 window.onload = function() {
6 var context = document.getElementById("A").getContext("2d");
7 context.scale(2,2);
8 context.beginPath();
9 context.rect(0,0,75,75);
10 context.clip();
11 context.fillStyle = 'green';
12 context.fillRect(0, 0, 30, 30);
13 context.fillRect(50, 50, 30, 30);
14 }
15 </script>
16 </head>
17 <body>
18 <p>Two green squares of different sizes should appear below</p>
19 <canvas id="A" width=300 height=300></canvas>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698