From: Timmy Willison Date: Thu, 31 Jan 2013 01:09:56 +0000 (-0500) Subject: Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. X-Git-Tag: 1.9.1~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e1ea2c44fdca57c64a02aedee57b9bd0582e34c;p=jquery.git Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. --- 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.