gecko-dev/layout/reftests/border-radius/clipping-4-canvas.html
2012-03-27 11:32:46 +13:00

15 lines
323 B
HTML

<!DOCTYPE HTML>
<title>Test for clipping of border-radius</title>
<style>
canvas {
border-radius: 25px;
}
</style>
<canvas id="canvas" height="100" width="200"></canvas>
<script>
var canvas = document.getElementById("canvas");
var cx = canvas.getContext("2d");
cx.fillStyle="lime";
cx.fillRect(0, 0, 200, 100);
</script>