Re: Sprites (was: Background position)

On Monday 18 May 2009, Jorrit Vermeiren wrote:

> @sprite tabs {
>     sprite-image: url(tabs_sprite.png);
>     sprite-offsets-x: 0 122 244 366;
>     sprite-offsets-y: 0 41 82;
> }
>
> #tabs li a { background-image: sprite(tabs, 0, 0); }

W3C has a Media Fragments WG, maybe that's a better place to discuss 
sprites. CSS doesn't seem the right place to define how to refer to 
fragments of external resources. E.g., if sub-images are useful in CSS, 
then how about in SMIL, SVG, or HTML? For example:

    <img src="foo.png#xywh=12,20,10,10" alt=...>

(This syntax is one of the proposals under discussion. See 
http://www.w3.org/TR/2009/WD-media-frags-reqs-20090430/#naming-space 
for details.)

The mailing list of the Media Fragments WG is 
<public-media-fragment@w3.org>



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Tuesday, 2 June 2009 12:09:36 UTC