Clipping along the border radius is not implemented in the software renderer. If this would be implemented, it would also be trivial to implement gradients on rounded rectangle which is also not currently implemented