clipping-5-refc.html 556 B

1234567891011121314151617181920
  1. <!DOCTYPE HTML>
  2. <title>Test for clipping of border-radius</title>
  3. <style>
  4. canvas {
  5. margin: 18px 19px 21px 25px;
  6. /* border + padding: 1px 2px 4px 8px */
  7. /* Horizontal: TL TR BR BL / Vertical: TL TR BR BL */
  8. /* border-radius: 25px 17px 14px 18px / 12px 15px 18px 17px; */
  9. border-radius: 17px 15px 12px 10px / 11px 14px 14px 13px;
  10. }
  11. </style>
  12. <canvas id="canvas" height="100" width="200"></canvas>
  13. <script>
  14. var canvas = document.getElementById("canvas");
  15. var cx = canvas.getContext("2d");
  16. cx.fillStyle="lime";
  17. cx.fillRect(0, 0, 200, 100);
  18. </script>