lib/resolver/cssGradient.js
function(cssProp) {
			var value = cssProp.value();
			var gradients = [];
			var that = this;
			cssProp.valueParts().forEach(function(part) {
				var partValue = part.substring(value);
				if (linearGradient.isLinearGradient(partValue)) {
					var gradient = linearGradient.parse(partValue);
					if (gradient) {
						gradients.push({
							gradient: gradient,
							matchedPart: part
						});
					}
				}
			});
			
			return gradients.length ? gradients : null;
		}
function(cssProp) {
			var value = cssProp.value();
			var gradients = [];
			var that = this;
			cssProp.valueParts().forEach(function(part) {
				var partValue = part.substring(value);
				if (linearGradient.isLinearGradient(partValue)) {
					var gradient = linearGradient.parse(partValue);
					if (gradient) {
						gradients.push({
							gradient: gradient,
							matchedPart: part
						});
					}
				}
			});
			
			return gradients.length ? gradients : null;
		}
function ( cssProp ) { var value = cssProp . value ( ) ; var gradients = [ ] ; var that = this ; cssProp . valueParts ( ) . forEach ( function ( part ) { var partValue = part . substring ( value ) ; if ( linearGradient . isLinearGradient ( partValue ) ) { var gradient = linearGradient . parse ( partValue ) ; if ( gradient ) { gradients . push ( { gradient : gradient , matchedPart : part } ) ; } } } ) ; return gradients . length ? gradients : null ; }
Search for gradient definitions inside CSS property value
@returns {Array} Array of matched gradients
Search for gradient definitions inside CSS property value