diff --git a/src/css.js b/src/css.js index 197cc5722..57d61925e 100644 --- a/src/css.js +++ b/src/css.js @@ -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"); }; diff --git a/test/index.html b/test/index.html index cedbb8282..918d7d2d7 100644 --- a/test/index.html +++ b/test/index.html @@ -87,7 +87,7 @@ -
See this blog entry for more information.