I'm not saying that CSS is perfect, or even great, because it isn't. But it is not intended to be a programming language, and you are basically complaining that it doesn't have the features of a programming language.
"Confound these ancestors.... They've stolen our best ideas!" - Ben Jonson