function contentOverlapping(targetElement, bgNode) {
	// get content box of target element
	// check to see if the current bgNode is overlapping
	var targetRect = targetElement.getClientRects()[0];
	var obscuringElements = dom.shadowElementsFromPoint(
		targetRect.left,
		targetRect.top
	);
	if (obscuringElements) {
		for (var i = 0; i < obscuringElements.length; i++) {
			if (
				obscuringElements[i] !== targetElement &&
				obscuringElements[i] === bgNode
			) {
				return true;
			}
		}
	}
	return false;
}
function contentOverlapping(targetElement, bgNode) {
	// get content box of target element
	// check to see if the current bgNode is overlapping
	var targetRect = targetElement.getClientRects()[0];
	var obscuringElements = dom.shadowElementsFromPoint(
		targetRect.left,
		targetRect.top
	);
	if (obscuringElements) {
		for (var i = 0; i < obscuringElements.length; i++) {
			if (
				obscuringElements[i] !== targetElement &&
				obscuringElements[i] === bgNode
			) {
				return true;
			}
		}
	}
	return false;
}
function contentOverlapping ( targetElement , bgNode ) { // get content box of target element // check to see if the current bgNode is overlapping var targetRect = targetElement . getClientRects ( ) [ 0 ] ; var obscuringElements = dom . shadowElementsFromPoint ( targetRect . left , targetRect . top ) ; if ( obscuringElements ) { for ( var i = 0 ; i < obscuringElements . length ; i ++ ) { if ( obscuringElements [ i ] !== targetElement && obscuringElements [ i ] === bgNode ) { return true ; } } } return false ; }
Determines overlap of node's content with a bgNode. Used for inline elements
@private
@param {Element} targetElement
@param {Element} bgNode
@return {Boolean}
Determines overlap of node s content with a bgNode . Used for inline elements
check if target element is overlapping with bgNode