Returns range for item to be selected in CSS after current caret
(selection) position
@param {String} rule CSS rule declaration
@param {Number} offset Rule's position index inside content
@param {Range} selRange Selection range
@return {Range} Returns range if next item was found, <code>null</code> otherwise
function getRangeForNextItemInCSS(rule, offset, selRange) {
		var tree = require('cssEditTree').parse(rule, {
			offset: offset
		});
		
		// check if selector is matched
		var range = tree.nameRange(true);
		if (selRange.end < range.end) {
			return range;
		}
		
		return matchedRangeForCSSProperty(tree, selRange, false);
	}