CSS Function Optimization

This commit adds support for the units contained with css functions, such
as gradients, rgb, translate, etc.

I also improved detection of the gradient function