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

Re: CSS color palettes

From: Pascal Germroth <pascal@germroth.name>
Date: Wed, 01 Nov 2006 02:01:32 +0100
Message-ID: <4547F1EC.7060009@germroth.name>
CC: W3C CSS <www-style@w3.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

> 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.

But wouldn't it be "semantically bad" to, for example, overload "red"
with your favorite green? Variables (or constants, if you want) would
really be better, then...
But doesn't CSS already have variables, for the counters? Wouldn't it be
easy to do something likewise for "real" variables? Like:

@define menucolor { value: #f00; }
#menu { color: value-of(menucolor); }


- --
Pascal Germroth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iQEVAwUBRUfx7IplHwrShYbrAQLTmwf+LJ7YKTfTcjqu1hj3upPdG3Yzp9BbkXpR
//sZxoaYlk3c/x2DsfzyPPDAfT+iLXJFJFLIRbZKMP1gbAjrE3+bFlWXYjuRNjTh
zpdj4I6Lj7/n2Cevn8zlFa19KHLeU1Cxw3IBlo2vAY7yP3DTMkkIMEaOsCffBufx
Ni+KcRSk9Do9V6QhgfQcqxDg81d7v4z0g5rg8PWmCOmghW+7Yw0WrdrcoWGjqLZ8
jJCdKG8LD0BaAt+6JZj1XGioKi4sY1VhNu4BcDbPy86Hw9PEpUYfk7+9E9e/vgDz
DKgrU/KKrfcPM5WjsyyfKBVfzq6fDm+IABNw67KsuNO08lX0ykdGuw==
=WjTb
-----END PGP SIGNATURE-----
Received on Wednesday, 1 November 2006 01:01:53 GMT

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