We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25c4a1 commit a720bb3Copy full SHA for a720bb3
src/selector.js
@@ -937,11 +937,11 @@ jQuery.expr = Sizzle.selectors;
937
jQuery.expr[":"] = jQuery.expr.filters;
938
939
Sizzle.selectors.filters.hidden = function(elem){
940
- return elem.offsetWidth === 0;
+ return elem.offsetWidth === 0 || elem.offsetHeight === 0;
941
};
942
943
Sizzle.selectors.filters.visible = function(elem){
944
- return elem.offsetWidth > 0;
+ return elem.offsetWidth > 0 || elem.offsetHeight > 0;
945
946
947
Sizzle.selectors.filters.animated = function(elem){
0 commit comments