6 ms·
CSS sprites are stupid. So stupid, in fact, that I refuse to use them. It wouldn't be such a big deal, I suppose, if IE6 supported proper transparency. But as i
by tdavis 17y ago
CSS sprites are stupid. So stupid, in fact, that I refuse to use them. It wouldn't be such a big deal, I suppose, if IE6 supported proper transparency. But as it stands, I still cannot, in 2009, safely use a 24-bit PNG for my CSS sprites.
If anything like this is ever standardized, which seems unlikely, and implemented in all the major browsers, which seems even more unlikely, MAYBE in 30 years we can use it in production.
But as far as fantasies go, it's one of the cooler ones!
- pjhyett 17y agoDoesn't yahoo.com use sprites? Not trying to be difficult, is the transparency issue the reason you don't like them? edit: I suppose I could have read the article first
- blasdel 17y agoSurely you mean 32-bit RGBA PNG?
- tdavis 17y agoI have no idea why I would "surely" mean that. Is "32-bit RGBA PNG" a synonym for "24-bit PNG with Alpha Transparency"? If so, I suppose I could have been more explicit, though I've never once seen such images referred to as that.
- blasdel 17y agoA 24-bit PNG would have no transparency, being 3 8-bit channels for RGB. Alpha transparency is a channel too! To be fair, the PNG spec is really bad about referring to alpha as if it were something entirely different from a color sample. I have spent way too much time thinking about PNG minutiae for a project at work...
- andreyf 17y agoWhat do sprites have to do with transparency? I thought they were just about displaying a part of the image with offset/size?