4 ], function( jQuery ) {
6 jQuery.expr.filters.hidden = function( elem ) {
7 return !jQuery.expr.filters.visible( elem );
9 jQuery.expr.filters.visible = function( elem ) {
11 // Support: Opera <= 12.12
12 // Opera reports offsetWidths and offsetHeights less than zero on some elements
13 // Use OR instead of AND as the element is not visible if either is true
14 // See tickets #10406 and #13132
15 return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;