I am currently working on creating a unique background design for my divs. I envision a rectangle with rounded corners, but with the right corner positioned lower than the left one. What is important is that the height difference between the two corners remains consistent, regardless of the overall height of the background.
Something similar to this concept:
https://i.sstatic.net/4eFQ0.png
Considering different options, I am uncertain whether utilizing a full svg or using clip-path in my css would be more effective.
My attempt at manually creating an svg did not yield precise results.
<svg width="500" height="200">
<defs>
<mask id="roundCorner">
<rect width="100%" height="100%" fill="white"/>
//left corner
<rect width="50" height="50" fill="black"/>
<circle r="50" cx="50" cy="50" fill="white"/>
//right corner
<rect x='450' y="25" width="50" height="50" fill="black"/>
<circle r="50" cx="450" cy="76" fill="white"/>
//line
<path d="M50 0 L500 30 L500 0 Z" fill='black' />
</mask>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="lime" mask="url(#roundCorner)"/>
</svg>
Therefore, I am seeking advice on how best to achieve a clean and visually appealing background design efficiently.