I'm trying to insert a background image to the top-right corner of my element and fade it with a gradient. The problem is that gradient is stretched through whole element and not only over the no-repeat image.
.bg {
/* manually set size for demostration purposes */
width: 800px;
height: 1600px;
background-repeat: no-repeat;
background-position-x: right;
background-color: rgba(66, 66, 66, 1);
background-image: linear-gradient(45deg, rgba(66, 66, 66, 1), rgba(66, 66, 66, 0.8)), url("https://img.scryfall.com/cards/art_crop/front/b/d/bd8fa327-dd41-4737-8f19-2cf5eb1f7cdd.jpg?1562933099");
}
<div class="bg" />