1
Vote

Basic Arithmetic Support

description

Add support for basic arithmetic on variables and constants in CSS: addition, subtraction etc.,

comments

TroyGoode wrote Dec 9, 2007 at 5:34 PM

The following question was just left on my blog:

"Do you support formulas ?

let's say that i want something like this ( very likely to happen )

.smallBorder { border : solid @borderPx Blue}
.biggerBorder { border : solid @borderPx+1 Blue}"

It sounds like arithmetic support might indeed be a needed feature.

This post (http://community.bartdesmet.net/blogs/bart/archive/2006/10/13/4536.aspx) has information on how to compile and evaluate dynamic expressions, which could be very useful.