Open mauskin opened 3 years ago
Of course there’s a way. Just include url
in your custom property so that instead of this
background-image: url(var(--nice-view));
you would write this
background-image: var(--nice-view);
And the property has to be defined like this: --nice-view: url(path/to/img.jpg);
.
When
url
uses custom property it is prepended with a path so that thisturns to
Is there a way to avoid this?