aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-01-30 20:05:39 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-01-30 20:37:13 -0500
commitf3ce0e696d41130e27ad06ae33a63057a2cace28 (patch)
tree367b8ec73f48aa51d8af88f7e31f1d7971299a29 /src/css.js
parentf5110cdec0b0e7ee353fd55187e87a2648fe0eba (diff)
downloadjquery-f3ce0e696d41130e27ad06ae33a63057a2cace28.tar.gz
jquery-f3ce0e696d41130e27ad06ae33a63057a2cace28.zip
Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 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 ) {