(element: Element)
| 453 | } |
| 454 | |
| 455 | function hiddenByOverflow(element: Element): boolean { |
| 456 | if (getOverflowState(element) !== 'hidden') { |
| 457 | return false; |
| 458 | } |
| 459 | |
| 460 | for (var index = 0; index < element.childNodes.length; index += 1) { |
| 461 | var child = element.childNodes[index]; |
| 462 | if (isElement(child) && !hiddenByOverflow(child) && positiveSize(child)) { |
| 463 | return false; |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | return true; |
| 468 | } |
| 469 | |
| 470 | return !hiddenByOverflow(elem); |
| 471 | } |
no test coverage detected