W3C home > Mailing lists > Public > www-style@w3.org > May 2001

processing one element multiple times in CSS 2 or 3?

From: Steve Tinney <stinney@sas.upenn.edu>
Date: Tue, 15 May 2001 00:08:44 -0400
To: www-style@w3.org
Message-Id: <01051500084400.19093@cn744265-b.wall1.pa.home.com>
Given:

	<a x="1" z="3"/>
	<a x="6" y="2"/>
	<a z="5"/>

is there any CSS rule set *other than listing all possible permutations* 
which will enable processing of each of the attributes of <a> something like 
this:

	a[x=1]:after { content: 'a'; }
              a[x=6]:after { content: 'f'; }
       	a[y=2]:after { content: 'b'; }
       	a[z=3]:after { content: 'x'; }
       	a[z=5]:after { content: 'v'; }

to produce:

	ax
	fb
	v
?

Or is this completely beyond the pale of CSS philosophy?

Yours not-very-hopefully,

 Steve
Received on Tuesday, 15 May 2001 00:06:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT