Exported validateCSSUnit function.