<!DOCTYPE html>
<p>
Regression test for crbug.com/1499539.
Disables acceleration by using a pattern.
</p>
<canvas id="canvas" width="100" height="100"></canvas>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
const img = new Image();
img.onload = function() {
ctx.drawImage(img, 0, 0);
ctx.drawImage(img, 20, 0);
ctx.drawImage(img, 0, 20);
ctx.drawImage(img, 20, 20);
ctx.fillStyle = 'green';
ctx.fillRect(20, 0, 10, 10);
}
img.src = 'resources/pattern.png';
</script>