JSFiddle - React, Tailwind, and code Playground
by shahryar saljoughi
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="styles.css">
<title>Document</title>
</head>
<body>
<div id="clipped"></div>
<svg viewBox="0 0 500 100" >
<defs>
<clipPath id="myClip" clipPathUnits="objectBoundingBox" transform="scale(0.002 0.01)">
<path d="M-20 0 A1 1, 0, 0 0, 20 0 L20 100 A1 1, 0, 0 0, -20 100 L0 20"
fill="royalblue"
stroke="black"/>
<rect x="20" y="0" width="300" height="100" />
</clipPath>
</defs>
</svg>
</body>
</html>
CSS
#clipped {
width: 250px;
height: 60px;
background-color: green;
margin: auto;
/* clip-path: path('M0.5,1 C0.5,1,0,0.7,0,0.3 A0.25,0.25,1,1,1,0.5,0.3 A0.25,0.25,1,1,1,1,0.3 C1,0.7,0.5,1,0.5,1 Z'); */
clip-path: url(#myClip) ;
}