W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Image sprites use cases

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 03 Sep 2009 10:23:19 -0400
Message-ID: <4A9FD157.2040205@mit.edu>
To: Alex Kaminski <activewidgets@gmail.com>
CC: www-style@w3.org
Alex Kaminski wrote:
> Is it really so? I can imagine that using background-position for sprites
> does indeed have memory impact, but if the spite is specified with
> image-region then I guess the browser can easily optimize memory usage.

The whole point of using sprites is that the single image is decoded all 
at once, no?  That's sort of how image formats work; they tend to not be 
amenable to only decoding part of an image.

Sprite techniques make the total size of the image much bigger than the 
sum of the sizes of the sprite images.  See 
http://blog.vlad1.com/2009/06/22/to-sprite-or-not-to-sprite/ for some 

> Yes, we can. But for the person who is trying to customize/modify the
> components it is not very convenient and much harder to explain.

Is the solution more complexity in CSS or better authoring tools for 
working with your components?

Received on Thursday, 3 September 2009 14:24:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC