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

Re: Font definition

From: Andy Rossmeissl <arossmeissl@uwsa.edu>
Date: Thu, 29 May 2003 13:45:11 -0500
To: www-style@w3.org
Message-ID: <47efb44eed.44eed47efb@uwsa.edu>

BG>> What about every other value? Wouldn't it be great to be able to
BG>> declare "variables" at the top of a stylesheet and reference them
BG>> where needed. Color schemes are the example that spring to mind.
Matt> @constants {
Matt> %mycolour%: #ffc;
Matt> %myothercolor%: #cce;
Matt> %mylength: 2em;
Matt> }

Of course when they're declared the %'s should probably be omitted:

@constants {
mybordercolor: #ffc;
myborderstyle: solid;
myborderwidth: 1px;
myborder: %mybordercolor% %myborderstyle% %myborderwidth%
}

-Andy
Received on Thursday, 29 May 2003 14:45:18 GMT

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