Looking for a smart way to use CSS only to apply a left rounded corner to an image. Using the standard CSS border radius property isn't suitable as it's too round. The best I could come up with is positioning an SVG image of the round effect on top of the image - not ideal as this can sometimes "flicker in" on page load.
.banner {background:hotpink}
.img-wrap:before {
content: "";
background: url(img/rounded-corner-left.svg) no-repeat;
position: absolute;
top: 0;
width: 100%;
display: block;
background-size: contain;
height: 100%;
background-position: top left;
z-index: 2;
}
Using this border-radius setting, provided in an answer, the effect is too rounded at the top of the image.
border-radius: 20% 0 0 0 / 100% 0 0 0;


border-radius: 20% 0 0 0 / 100% 0 0 0;is not acceptable? Look atclip-pathand try something with that.