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

Re: Image sprites use cases

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Thu, 3 Sep 2009 09:50:04 -0400
Message-ID: <7c2a12e20909030650u7d707df4jcda4fd77628cd832@mail.gmail.com>
To: Alex Kaminski <activewidgets@gmail.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
On Thu, Sep 3, 2009 at 7:10 AM, Alex Kaminski<activewidgets@gmail.com> wrote:
> The package proposal is excellent and it covers very well the basic
> usage of image sprites (to reduce the number of http requests).
> However it still does not provide much help to the developers of web
> applications and component libraries who also need an efficient method
> to address many (possibly hundreds) of image fragments. Would it be
> right thing then to target the new CSS sprites technique to this
> advanced use case (UI components), possibly using something like
> image-region property, assuming that the basic sprites case is covered
> by the new packaging proposal?

The problems with image sprites (high memory footprint, hard to author
and maintain) would remain significant here.  It seems like your use
case could be solved if CSS provided a way to algorithmically
construct URLs for background images, or something of that sort.  I
don't know what a good proposal of that kind would look like, though.
Superficially, it seems kind of scary.  Why can't you just use a few
hundred CSS rules?
Received on Thursday, 3 September 2009 13:50:46 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:39 UTC