So, Chrome is currently prototyping CSS Functions.
Source
I think that Firefox should also start experimenting with this feature.
Thanks for submitting an idea to the Mozilla Connect community! Your idea is now open to votes (aka kudos) and comments.
never-displayed