For basic masking (square) you can set the overflow to hidden on the parent object.

For webkit mask, you could add something like this to the custom css property for an object base state. You'll...