<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Borders and Box Decorations 4: 'corner-shape' parametric rendering</title>
<canvas id="target" width="400" height="400"></canvas>
<script src="resources/resolve-corner-style.js"></script>
<script src="resources/corner-utils.js"></script>
<script src="resources/corner-shape.js"></script>
<style>
  body {
    margin: 0;
  }
</style>
<script>
const canvas = document.getElementById("target");
const params = new URLSearchParams(location.search);
const width = par