Ah, well you'd still need something more powerful for that kind of thing to work. A constraints engine for example:
http://gridstylesheets.org/
If you're going to go to the trouble of writing a CSS processor, you could at least add in some really interesting ideas.