2 ms·
There aren't many features, but they fill in various "holes" in CSS (compared to every other programming language). For one example, you can define "constants"
by edanm 16y ago
There aren't many features, but they fill in various "holes" in CSS (compared to every other programming language).
For one example, you can define "constants". That means you can define a color once with a name (say, LINK_COLOR = #aaa), then use that name over and over. Then, if you ever feel like changing that color, you only have to change it once (where it says LINK_COLOR = ), not every time.
Other benefits are something akin to "functions", and ways of "nesting" your CSS which automatically makes certain classes only apply to nested elements (this is something most people do anyway, they just do it by hand).