summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-paint-api/paint2d-roundRect-ref.html
blob: 71e9031f4be8447842d449e07039e8c1bdbec185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<body>
<canvas id ="output" width="100" height="100" style="background: blue;"></canvas>
<script>
var canvas = document.getElementById('output');
var ctx = canvas.getContext('2d');

ctx.fillStyle = 'green';
ctx.roundRect(10, 10, 80, 80, [20, 40, 10]);
ctx.fill();
</script>
</body>
</html>