4 ], function( jQuery ) {
6 jQuery.expr.filters.hidden = function( elem ) {
7 // Use OR instead of AND as the element is not visible if either is true
8 // See tickets #10406 and #13132
9 return !elem.offsetWidth || !elem.offsetHeight;
11 jQuery.expr.filters.visible = function( elem ) {
12 return !jQuery.expr.filters.hidden( elem );