2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

why the “background-repeat” is missing? #32

Closed ideayuye closed 8 years ago

ideayuye commented 8 years ago

I have a question. my css like this:

background: url('images/iconfont-wuliuguanli.png') no-repeat;

postcss-sprites process result like this:

background-image: url(images/sprite.png);
background-position: 0 0;

Why the "no-repeat" is missing?Thanks in advance!

vvasilev- commented 8 years ago

The plugin doesn't handle thebackground-repeat property because most of sprites doesn't need it. Can you explain your use case?

ideayuye commented 8 years ago

@vvasilev- thank you for your anwser! I waw wrong .Sprites really doesn't need it . I was really embarrassed for asked the question.