Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / canvas-resize-expected.html
blob0ba42df5a13fd5d4177f9c71e3a966d97ba3e8d2
1 <!DOCTYPE html>
2 <style>
3 canvas {
4 position: absolute;
5 width: 500px;
6 height: 500px;
7 top: 50px;
8 left: 50px;
10 </style>
11 Tests paint invalidation of canvas when it's resized. Passes if there is a whole green circle.
12 <canvas id="canvas" width="500" height="500"></canvas>
14 <script>
15 var ctx = document.getElementById('canvas').getContext('2d');
16 ctx.beginPath();
17 ctx.arc(250, 250, 250, 0, 2 * Math.PI);
18 ctx.fillStyle = 'green';
19 ctx.fill();
20 </script>