I always get the same size for clipping area which is much smaller than the container size(300px
here) I am trying to clip.
I tried to play with viewBox
and width
/height
attributes for <svg>
and <clipPath>
tags but got no result.
Is this possible to scale this area?
#clipped {
width: 300px;
height: 300px;
background-color: #f00;
-webkit-clip-path: url(#test);
clip-path: url(#test);
}
<div id="clipped"></div>
<svg width="0" height="0">
<defs>
<clipPath id="test">
<path d="M163.3,112.12c9.83-13.64,2.9-38.95-3.9-58.06-4.93-13.83-11.42-23.17-19-29.36A46.5,46.5,0,0,0,124,16.19a74.54,74.54,0,0,0-20.86-2.67C77.61,13.14,72.32,2.57,52.16.3,41.2-.94,32.84,1.72,27.53,7.69c-3.27,3.68-5.39,8.63-6.23,14.7a114.29,114.29,0,0,1-2.67,15.25A85.23,85.23,0,0,1,14.86,49C12.55,54.6,9.59,60.44,5.73,68c-7.28,14.27-11.22,41.2,11,57.82,7.91,5.64,17.48,5.86,27.8,4.23,16.71-2.65,35.35-10.14,52-7.3C116.53,126.16,145.49,139.85,163.3,112.12Z"/>
</clipPath>
</defs>
</svg>