you could try using degrees to align the gradient
[mask-image:linear-gradient(270deg,transparent_0%,#000_20%)]