Adds some safari compatibility for gradients