aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/hiddenVisibleSelectors.js
blob: 9a8a28cf8d35f8748e52eb19f6232a233ccc5263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define( [
	"../core",
	"../selector"
], function( jQuery ) {

jQuery.expr.filters.hidden = function( elem ) {
	return !jQuery.expr.filters.visible( elem );
};
jQuery.expr.filters.visible = function( elem ) {
	return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
};

} );