Hey there, wondering if it's possible to achieve high-quality Retina-level CSS masking with the -webkit-mask-box-image
property. Specifically, I'm trying to round the corners of an element without using border-radius
due to performance issues:
.element {
-webkit-mask-box-image: url('mask.png') 12 12 12 12 stretch stretch;
}
The mask image is double the necessary size (using 6
for non-retina screens instead of 12
).
While the mask is positioned correctly, the corner rounding lacks the smoothness expected on Retina displays.