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

Re: [css3-background] New use case for background-position-x (&y!)

From: Simon Fraser <smfr@me.com>
Date: Mon, 08 Nov 2010 09:09:13 -0800
Cc: "www-style@w3.org list" <www-style@w3.org>
Message-id: <297B5205-CBB8-4A81-A2B7-B9E0F9FD2242@me.com>
To: Lee Kowalkowski <lee.kowalkowski@googlemail.com>
On Nov 8, 2010, at 8:02 AM, Simon Fraser wrote:

> On Nov 8, 2010, at 1:36 AM, Lee Kowalkowski wrote:
> 
>> No idea if this is too late for the spec, I only just realised I
>> wanted this.  Hopefully it will pick up browser support regardless.
>> 
>> My use case has arisen from a card game I'm currently writing.  I
>> decided to put all my playing cards into 1 graphic, x position defines
>> rank, y position defines the suit, like a static CSS sprite.
> 
> This sounds like a suboptimal approach from an accessibility perspective.
> Each card should be a separate element.

Sorry, I misunderstood your approach. I agree with fantasai that making progress
on image sprites is the best way forward here.

Simon
Received on Monday, 8 November 2010 17:09:48 GMT

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