chromium/third_party/blink/web_tests/fast/canvas/canvas-size-change-after-layout.html

<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>