--smooth-corners: 4 mask-image: paint(smooth-corners); -webkit-mask-image: paint(smooth-corners);
Update: add a smooth corner painter that better supports rectangle.
Original
V2