summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-size-change-after-layout.html
blob: b1bdc5fde6e82e2edabae738a05301dd1382c78f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<style>
    canvas { border: solid green; }
</style>
<p>
    These should be two identical green hollow squares:
</p>
<canvas width="50" height="50"></canvas>
<canvas id="canvas"></canvas>
<script>
    document.body.offsetTop;
    var canvas = document.getElementById("canvas");
    canvas.setAttribute("width", 50);
    canvas.setAttribute("height", 50);
</script>