Skip to content
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

Sprites with individual spacing renders white background #3

Open
cscheng opened this issue Nov 3, 2011 · 0 comments
Open

Sprites with individual spacing renders white background #3

cscheng opened this issue Nov 3, 2011 · 0 comments

Comments

@cscheng
Copy link

cscheng commented Nov 3, 2011

When I create a sprite that has spacing, it renders the entire sprite with a white background.

For example:

$icon: sprite-map('icon/*.png', $position: 0%, $spacing: 100px, $repeat: no-repeat);
@import 'icon/*.png';

However, the transparency of the individual images is maintained. Only the background of the spacing is white. It occurs with 8-bit PNGs, 24-bit PNGs, and I have also tried it with mixed bit depths.

Why does this happen? As a workaround I'm using the default sprite engine, which renders the spacing correctly (transparent). But it's really slow...

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

No branches or pull requests

1 participant