W3C home > Mailing lists > Public > www-style@w3.org > November 2008

Re: background-position-x & y

From: Aryeh Gregor <Simetrical@gmail.com>
Date: Wed, 12 Nov 2008 10:39:09 -0500
Message-ID: <7c2a12e20811120739k779d9388iba862f9bb5e45896@mail.gmail.com>
To: "Jethro Larson" <jethrolarson@gmail.com>
Cc: www-style@w3.org

On Sat, Nov 1, 2008 at 3:23 AM, Jethro Larson <jethrolarson@gmail.com> wrote:
> I feel that one of the big goals for CSS3 would be to ease the use of
> sprites as they can improve performance of pages by a lot. Being able to
> load up all the UI images into a single file would decrease download time
> significantly and re-skinning a site would be as simple as changing a single
> reference and modifying a single image file.

Sprites are a terrible hack.  CSS shouldn't make any attempt to
support them.  CSS sprites should be obviated, for preference, by
browsers loading all images simultaneously, negating the performance
advantage of sprites.  (Possibly only if the server requests this
somehow, if causing server load is an issue.)  There is no possible
justification for trying to support an interface where authors are
supposed to manually concatenate images and manually specify offsets
in CSS rather than treating the images as the logically separate units
they actually are.  CSS sprites might be useful now, but that's a bad
situation, not one that anyone should be trying to perpetuate.
Received on Wednesday, 12 November 2008 15:43:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:16 GMT