Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-size-change-after-layout.html
blobb1bdc5fde6e82e2edabae738a05301dd1382c78f
1 <style>
2 canvas { border: solid green; }
3 </style>
4 <p>
5 These should be two identical green hollow squares:
6 </p>
7 <canvas width="50" height="50"></canvas>
8 <canvas id="canvas"></canvas>
9 <script>
10 document.body.offsetTop;
11 var canvas = document.getElementById("canvas");
12 canvas.setAttribute("width", 50);
13 canvas.setAttribute("height", 50);
14 </script>