yostudios / Spritemapper

CSS Spritemap Generator
http://yostudios.github.com/Spritemapper/
MIT License
595 stars 42 forks source link

compact form for background is not handled #19

Open riffraff opened 13 years ago

riffraff commented 13 years ago

input code

div.1 {
  background: url("img/1.png") center no-repeat;
}
div.2 {
  background: url(img/2.png) ;
}

produces an identical output code, whereas

div.1 {
  background: url("public/images/explore_all.png");
}
div.2 {
  background: url(public/images/explore_places.png) ;
}

produces an expected output of

div.1 {
  background: url('img/images.png') no-repeat 0 0;
}
div.2 {
  background: url('img/images.png') no-repeat -54px 0;
}

IMO spritemapper should at least report "unsupported xxx" in cases such as this, if it cannot support it better.

sairam commented 12 years ago

Are sprites not supported on compact form backgrounds ?