🔗ally.is.visible
Determines if an element is rendered.
🔗Description
An element must be visible (ally.is.visible) and may not be disabled (ally.is.disabled) to be considered focusable.
🔗Usage
var element = document.getElementById('victim');
var isVisible = ally.is.visible(element);
🔗Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| element | HTMLElement | required | The Element to test. |
🔗Returns
Boolean, true if the element is visible (i.e. not hidden by CSS).
🔗Throws
TypeError if element argument is not of type HTMLElement.