コード例 #1
0
 public static function isElementVisible($e)
 {
     //visibility:hidden o display:none
     if (BasicChecks::isProprietyInerited($e, "visible", "hidden") || BasicChecks::isProprietyInerited($e, "display", "none")) {
         return false;
     }
     // check if the item is within an element with absolute position outside the page
     //controllo se l'elemento è all'interno di un elemento con posizione assoluta esterna alla pagina
     if (BasicChecks::isPositionOutOfPage($e)) {
         return false;
     }
     return true;
 }