function isVisible(parentEl, selector, checkLightDom) {
    var element = (checkLightDom ? parentEl.querySelector : parentEl.$$)
                      .call(parentEl, selector);
    var rect = element ? element.getBoundingClientRect() : null;
    return !!rect && rect.width * rect.height > 0;
  }
/**
   * Returns whether or not the element specified is visible. This is different
   * from isElementVisible in that this function attempts to search for the
   * element within a parent element, which means you can use it to check if
   * the element exists at all.
   * @param {!HTMLElement} parentEl
   * @param {string} selector
   * @param {boolean=} checkLightDom
   * @return {boolean}
   */
Returns whether or not the element specified is visible. This is different
from isElementVisible in that this function attempts to search for the
element within a parent element, which means you can use it to check if
the element exists at all.
@param {!HTMLElement} parentEl
@param {string} selector
@param {boolean=} checkLightDom
@return {boolean}
Returns whether or not the element specified is visible . This is different from isElementVisible in that this function attempts to search for the element within a parent element which means you can use it to check if the element exists at all . @param { !HTMLElement } parentEl @param { string } selector @param { boolean = } checkLightDom @return { boolean }
function isVisible(parentEl, selector, checkLightDom) {
    var element = (checkLightDom ? parentEl.querySelector : parentEl.$$)
                      .call(parentEl, selector);
    var rect = element ? element.getBoundingClientRect() : null;
    return !!rect && rect.width * rect.height > 0;
  }
function isVisible ( parentEl , selector , checkLightDom ) { var element = ( checkLightDom ? parentEl . querySelector : parentEl . $$ ) . call ( parentEl , selector ) ; var rect = element ? element . getBoundingClientRect ( ) : null ; return ! ! rect && rect . width * rect . height > 0 ; }
Returns whether or not the element specified is visible.
Returns whether or not the element specified is visible .