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

Re: Image sprites use cases

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sun, 30 Aug 2009 12:26:11 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
Message-Id: <A786D94E-2073-4CCB-93E1-6C2D55CECA23@gmail.com>
To: Alex Kaminski <activewidgets@gmail.com>

On Aug 30, 2009, at 11:38 AM, Alex Kaminski wrote:

> Maybe splitting the properties is not that bad? I agree that having
> list-style-image-position-x is an overkill but maybe
> background-image-region: x,y,w,h could be acceptable?

So, is the advantage there that you don't have to include the image  
path and file name each time? For example, the following possible  
equivalent would be too long?

"background-image: url(/path/to/where/images/are/stored/ 
image.png#xywh=0,40,20,20);"

I can see that point, if that is what you mean. What if there was a  
shorthand of only listing the hash (the way anchor tags do in HTML)?  
Thus if you just put this:

"background-image: url(#xywh=0,40,20,20);"

...then it would mean the same thing as "use the existing URL, but  
with the new hash, indicating a different region". That would allow  
for a short way of indicating the region, without adding new  
properties to all the places where images are used.
Received on Sunday, 30 August 2009 19:26:51 GMT

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