code: function noParentScrolled(element, offset) {
  	element = dom.getComposedParent(element);
  	while (element && element.nodeName.toLowerCase() !== 'html') {
  		if (element.scrollTop) {
  			offset += element.scrollTop;
  			if (offset >= 0) {
  				return false;
  			}
  		}
  		element = dom.getComposedParent(element);
  	}
  	return true;
  }
docs: /* global dom