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

jQuery.expr.filters.hidden = function( elem ) {
	// Support: Opera <= 12.12
	// Opera reports offsetWidths and offsetHeights less than zero on some elements
	return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
};
jQuery.expr.filters.visible = function( elem ) {
	return !jQuery.expr.filters.hidden( elem );
};

});