Closed almothafar closed 7 years ago
I think the issue is in RegExp that parses background-image property to get image url in Private.getBackgroundImageURL
- var regexp = /\((.+)\)/;
I've created PR to fix this RegExp to take only url https://github.com/chrisben/imgcache.js/pull/182
@vitaliy-bobrov is right, it's a bug with the background image url parser. I've merged his fix.
Thanks to you guys!
I'm using the
linear-gradient()
withbackground-image
the problem is I get a lot of error messages in the console, and seems cache not working as well..image-bg { background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.60)), url('img-url-here') center center no-repeat; }
not sure if there is another properties for this, but currently I have with
linear-gradient
, I get the following prints in the console: