mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 11:15:05 -05:00
This commit is contained in:
@@ -632,7 +632,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
|
||||
jQuery.expr.filters.hidden = function( elem ) {
|
||||
// Support: Opera <= 12.12
|
||||
// Opera reports offsetWidths and offsetHeights less than zero on some elements
|
||||
return elem.offsetWidth <= 0 || elem.offsetHeight <= 0 ||
|
||||
return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
|
||||
(!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user