W3C home > Mailing lists > Public > www-style@w3.org > October 2006

Re: CSS color palettes

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 31 Oct 2006 22:40:14 +0100
Message-Id: <7B05D6DE-6712-41FB-95B2-92494DF8FC96@crissov.de>
To: W3C CSS <www-style@w3.org>

While proposals for variables in CSS get rejected on a regular and  
frequent basis, this one made me wonder if there was a backward  
compatible way after all: overloading keywords.

Imagine you could assign your own values to the X11^WSVG color names,  
which a compliant UA would then use on every instance inside this  
cascade of stylesheets, but every other one would safely ignore that  
assignment and use the W3C or UA default as applicable. Therefore  
authors would have to choose an existing color that matches the  
desired one as closely as possible.
This would not have to be restricted to color names, but could be  
extended to many other keywords as well, like |xx-small| through |xx- 
large| for |font-size| or |thin| through |thick| for |border-width|.  
For keywords may appear in different properties with differing  
meaning the scope would have to be defined. I am not sure what  
computed values would be like and I neither propose a specific syntax.
No custom names would be possible and thus not all properties where  
you might like to use variables would support them.
Received on Tuesday, 31 October 2006 21:39:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:26 UTC