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

Re: CSS3 : font-style

From: <MWhisman@aol.com>
Date: Sun, 30 May 1999 01:15:09 EDT
Message-ID: <48b1e85f.2482235d@aol.com>
To: www-style@w3.org
Nicolas Lesbats' suggestion of 
	toggle(first-value, second-value); 
such as 
	toggle(italic, normal); 
is very good.

L. David Baron's suggestion of 
	cycle(x1, xi, xn);
for example, 
	list-style-type: cycle(disk, square, circle); /* something like 
typical UL */
with his conditions:
	* if the value of the property on the parent is *none* of x1...xn, the
	  value on the element is x1
	* if the value of the property on the parent is xk, then the value on
	  the element is x(k+1), unless k=n, in which case the element gets
	  value x1
is also very good.

I would suggest that toggle() be preferred (simpler) in cases of two items, 
while cycle() would cover three or more items.

MWhisman@aol.com (Ben Whisman)
Received on Sunday, 30 May 1999 01:16:06 GMT

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