With the following HTML element
<div class="img" style="--img-name: 'mount-everest';"></div>
and the following styles:
.img {
background: url('/images/' var(--img-name) '-desktop.jpg');
}
the background doesn't get applied. I thought I could expect it to, because this
.img::after {
content: '/images/' var(--img-name) '-desktop.jpg';
}
does concatenate the strings with the custom prop & display the path onscreen.
Is there something I'm doing incorrectly or is what I'm trying to do not possible with CSS custom props?