fix for #4374, gap in :hidden, :visible logic

This commit is contained in:
Brandon Aaron 2009-03-18 17:55:07 +00:00
parent 62a251a0cf
commit 2c31a1624f
2 changed files with 17 additions and 2 deletions

View file

@ -969,7 +969,7 @@ jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.filters;
Sizzle.selectors.filters.hidden = function(elem){
return elem.offsetWidth === 0 || elem.offsetHeight === 0;
return elem.offsetWidth === 0 && elem.offsetHeight === 0;
};
Sizzle.selectors.filters.visible = function(elem){