Is there a way to clip the top right corner of an image with rounded corners using SVG without compatibility issues (excluding IE)? I want it to be flexible in size, preferably without fixed aspect ratios.
<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 43.45 43.45">
<path fill="black" fill-rule="evenodd" d="M0 0v.05c1.15.11 2.24.6 3.06 1.42l38.93 39.06c.79.79 1.26 1.83 1.4 2.92h.06V0H0Z"/>
</svg>
I have been struggling to achieve this effect despite trying various methods:
- Clipping/masking with inline SVG
- Cutting the top right corner with polygon paths (and applying separate border radius)
- Using Webkit masks along with compositing
- Experimenting with objectBoundingBox properties
- Exploring border-image solutions
- And many more approaches...
The desired outcome should resemble the top right corner in this image: Expected Result
If anyone has insights or suggestions on how to accomplish this properly, I would greatly appreciate it!