From f3ce0e696d41130e27ad06ae33a63057a2cace28 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 30 Jan 2013 20:05:39 -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 585108f1a..9cd38b287 100644 --- a/src/css.js +++ b/src/css.js @@ -534,7 +534,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.expr.filters.visible = function( elem ) { 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