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

ctx.beginPath();
ctx.roundRect(10, 10, 100, 100, [20]);
ctx.fill();
</script>
</body>
</html>