
assets.lib.jquery.src.css.hiddenVisibleSelectors.js Maven / Gradle / Ivy
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 );
};
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy