Skip to content

CSS loader not extracting path in -webkit-image-set #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lemieux opened this issue Dec 7, 2015 · 0 comments · Fixed by #202
Closed

CSS loader not extracting path in -webkit-image-set #200

lemieux opened this issue Dec 7, 2015 · 0 comments · Fixed by #202

Comments

@lemieux
Copy link
Contributor

lemieux commented Dec 7, 2015

Hi,

we currently use this mixin in our LESS code to generate retina display background images

.retina-image(@width, @height, @normal-image, @retina-image) {
  width: @width;
  height: @height;
  background-image: url(@normal-image); // fallback for Firefox and IE
  background-image: -webkit-image-set(
    url(@normal-image) 1x,
    url(@retina-image) 2x
  );
  background-repeat: no-repeat;
  display: inline-block;
}

and it seems like the url in background-image: url(@normal-image); is picked up and replaced by the loader but not the ones in -webkit-image-set. They are just rendered as -webkit-image-set(url('/path/to/image') 1x, url('/path/to/image@2x')).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant