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

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

From: Brian Manthos <brianman@microsoft.com>
Date: Mon, 8 Nov 2010 21:24:16 +0000
To: Lee Kowalkowski <lee.kowalkowski@googlemail.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF16920C20@TK5EX14MBXC132.redmond.corp.microsoft.com>
> I give my playing card elements class names like "diamonds rank-10", I want
> to apply background-y depending on suit and background-x depending on
> rank, using _different_ class names.
> 
> If I could do this, I'd only need to define 17 rules in my CSS file, instead of a
> rule for all 52 cards (I've already done this, I just think the 17 rules would look
> a lot better).

The question/issue is fuzzy to me.  Can you provide a sample showing what you'd like to do, but are prohibited from doing by the spec?
Received on Monday, 8 November 2010 21:24:57 GMT

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