Tests whether a given element and it's ancestors have a display:none. This is useful to see if a given element is on the screen (based on whether if the element or it's ancestors have display none.)
const elementIsVisibleOnScreen = !dom.isDisplayNoneWithAncestors(element); Copy
const elementIsVisibleOnScreen = !dom.isDisplayNoneWithAncestors(element);
Tests whether a given element and it's ancestors have a display:none. This is useful to see if a given element is on the screen (based on whether if the element or it's ancestors have display none.)