Re: Image sprites use cases

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 UTC