зеркало из https://github.com/mozilla/pjs.git
15 строки
324 B
HTML
15 строки
324 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="green";
|
|
cx.fillRect(0, 0, 200, 100);
|
|
</script>
|