( elem, el )
| 4719 | }; |
| 4720 | } |
| 4721 | var isHiddenWithinTree = function( elem, el ) { |
| 4722 | |
| 4723 | // isHiddenWithinTree might be called from jQuery#filter function; |
| 4724 | // in that case, element will be second argument |
| 4725 | elem = el || elem; |
| 4726 | |
| 4727 | // Inline style trumps all |
| 4728 | return elem.style.display === "none" || |
| 4729 | elem.style.display === "" && |
| 4730 | |
| 4731 | // Otherwise, check computed style |
| 4732 | // Support: Firefox <=43 - 45 |
| 4733 | // Disconnected elements can have computed display: none, so first confirm that elem is |
| 4734 | // in the document. |
| 4735 | isAttached( elem ) && |
| 4736 | |
| 4737 | jQuery.css( elem, "display" ) === "none"; |
| 4738 | }; |
| 4739 | |
| 4740 | |
| 4741 |
no test coverage detected