Generate CSS to clip an HTML element into any shape.
<svg aria-hidden="true" focusable="false" style="width: 0px; height: 0px; transform: scale(0); opacity: 0; position: absolute; z-index: -11;">
<defs>
<clipPath id="cute-magick-clip" clipPathUnits="objectBoundingBox">
<path d="M 0 0.08 Q 0 0, 0.08 0 L 0.92 0 Q 1 0, 1 0.08 L 1 0.92 Q 1 1, 0.92 1 L 0.08 1 Q 0 1, 0 0.92 L 0 0.08 Z" />
</clipPath>
</defs>
</svg>
<div class="cute-shape">Hello!</div>
<img class="cute-shape" src="/images/example.png" alt="Clipped Image">
.cute-shape {
clip-path: url(#cute-magick-clip);
/* Demo styles below */
background: #facade;
width: 200px;
height: 200px;
display: grid;
place-content: center;
}