code: function findGradientFromPosition(content, pos) {
  		var cssProp = null;
  		/** @type EditContainer */
  		var cssRule = require('cssEditTree').parseFromPosition(content, pos, true);
  		
  		if (cssRule) {
  			cssProp = cssRule.itemFromPosition(pos, true);
  			if (!cssProp) {
  				// in case user just started writing CSS property
  				// and didn't include semicolon–try another approach
  				cssProp = _.find(cssRule.list(), function(elem) {
  					return elem.range(true).end == pos;
  				});
  			}
  		}
  		
  		return {
  			rule: cssRule,
  			property: cssProp
  		};
  	}
docs: Search for gradient definition inside CSS value under cursor
  @param {String} content
  @param {Number} pos
  @returns {Object}