From 1e1ea2c44fdca57c64a02aedee57b9bd0582e34c Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 30 Jan 2013 20:09:56 -0500 Subject: [PATCH] Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. --- src/css.js | 2 +- test/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.

-- 2.39.5