blob: d7a9339dd1338d15bdc2749efe83553a6646c009 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001define( [
2 "../core",
3 "../selector"
4], function( jQuery ) {
5
6"use strict";
7
8jQuery.expr.pseudos.hidden = function( elem ) {
9 return !jQuery.expr.pseudos.visible( elem );
10};
11jQuery.expr.pseudos.visible = function( elem ) {
12 return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
13};
14
15} );