CMS Background image including gradient

Why can’t I just add a gradient to a div that has been selected for CMS to get the image background?

Normally in CSS you can do it without an issue ie

background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531); /* W3C */

I know this might be a bit old but there has to be a better way…