isHidden function

bool isHidden(
  1. Element e
)

Refer to Jquery

Implementation

bool isHidden(Element e) {
  //if (e.style.display != 'none' && e.style.visibility != 'hidden')
  //refer to jquery
  return e.offsetWidth <= 0 && e.offsetHeight <= 0;
}