When applying CSS in Ionic, I encountered an issue with the background image causing the background to turn black. Without the image, everything looks fine.
ion-content {
--background: url("/assets/product_background.png") 0 0/100% 95% no-repeat;
--ion-background-color: linear-gradient(to bottom, #1a1240 35%,#6528af 70%,#736eed 100%);
}
With Background image
https://i.sstatic.net/ELqjR.png
without background image