yostudios / Spritemapper

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

Partial fix for repeat|repeat-x|repeat-y #28

Open georgevreilly opened 11 years ago

georgevreilly commented 11 years ago

If a background declaration includes repeat, repeat-x, or repeat-y, it is not rewritten by the replacer. The image, however, is still included in the sprite. If the repeat-style is no-repeat, the background declaration continues to be rewritten, of course.

This is not sufficient if there's an explicit background-repeat declaration.

Ideally, there would be more smarts for repeat-x and repeat-y. See Stoyan for some ideas on how to handle such cases.