Gradient direction fix in Mozilla