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

Re: Image sprites use cases

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 30 Aug 2009 22:10:45 -0500
Message-ID: <dd0fbad0908302010t20f32afbgb4791f3c37b0e6c3@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Alex Kaminski <activewidgets@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On Sun, Aug 30, 2009 at 9:40 PM, Brad Kemper<brad.kemper@gmail.com> wrote:
> On Aug 30, 2009, at 6:07 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> These rules
>> have a *very* regular structure that can be churned out by a nested
>> loop with any competent language.  Considering the originator of the
>> use-case (widget libraries), it's not an unreasonable assumption that
>> they'll be able to do this.  It's *not* a situation that a normal
>> author hand-crafting rules, or even a normal author using a CMS, will
>> encounter.
>
> I don't know about that. I've created button-styled links by hand, with
> hover states, dimmed states, small versions, etc. That were all in a style
> to match the site style. I did that all by hand.

Oh, indeed, I've also done this.  But when you or I are handcrafting
things, we're still working with a fairly small set of necessary
images.  Alex is talking from a widget library standpoint, where every
combo of interaction/state/control is compounded by multiple skins as
well.

Our use-cases are small enough that specifying the urls for each isn't
too bad.  Alex's would be pretty ridiculous if done by hand, but he
can fairly easily generate it once and use it everywhere.  (Also, his
largest source of rules, styling boxes by pieces, will be considerably
simplified once he can rely on border-image.)

~TJ
Received on Monday, 31 August 2009 03:11:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:20 GMT