lib/resolver/css.js
function(value, property) {
			property = (property || '').toLowerCase();
			var unitlessProps = prefs.getArray('css.unitlessProperties');
			return value.replace(/^(\-?[0-9\.]+)([a-z]*)$/, function(str, val, unit) {
				if (!unit && (val == '0' || ~unitlessProps.indexOf(property)))
					return val;
				
				if (!unit)
					return val.replace(/\.$/, '') + prefs.get(~val.indexOf('.') ? 'css.floatUnit' : 'css.intUnit');
				
				return val + getUnit(unit);
			});
		}
function(value, property) {
			property = (property || '').toLowerCase();
			var unitlessProps = prefs.getArray('css.unitlessProperties');
			return value.replace(/^(\-?[0-9\.]+)([a-z]*)$/, function(str, val, unit) {
				if (!unit && (val == '0' || ~unitlessProps.indexOf(property)))
					return val;
				
				if (!unit)
					return val.replace(/\.$/, '') + prefs.get(~val.indexOf('.') ? 'css.floatUnit' : 'css.intUnit');
				
				return val + getUnit(unit);
			});
		}
function ( value , property ) { property = ( property || '' ) . toLowerCase ( ) ; var unitlessProps = prefs . getArray ( 'css.unitlessProperties' ) ; return value . replace ( / ^(\-?[0-9\.]+)([a-z]*)$ / , function ( str , val , unit ) { if ( ! unit && ( val == '0' || ~ unitlessProps . indexOf ( property ) ) ) return val ; if ( ! unit ) return val . replace ( / \.$ / , '' ) + prefs . get ( ~ val . indexOf ( '.' ) ? 'css.floatUnit' : 'css.intUnit' ) ; return val + getUnit ( unit ) ; } ) ; }
Normalizes value, defined in abbreviation.
@param {String} value
@param {String} property
@returns {String}
Normalizes value defined in abbreviation .