mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
15 lines
323 B
HTML
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>
|