ams.get("width") || 200;
const height = params.get("height") || 100;
canvas.width = width * 3;
canvas.height = height * 3;
canvas.style.top = -height + "px";
canvas.style.left = -width + "px";
canvas.style.position = "relative";
const ctx = canvas.getContext("2d");
ctx.translate(width, height);
const style = resolve_corner_style(Object.fromEntries(params.entries()), width, height);
style['background-color'] = "green";
render_rect_with_corner_shapes(style, ctx, width, height);
</script>
