summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-paint-api/background-repeat-x-ref.html
blob: 3df0c5417d7be47e22bd6145be9d13b9e5fbc9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html>
<body>
<canvas id ="canvas" width="200" height="200"></canvas>
<script>
var ctx = document.getElementById('canvas').getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 50, 50);
ctx.fillRect(100, 0, 50, 50);
</script>
</body>
</html>