checkVisibility method
The checkVisibility() method of the Element interface checks
whether the element is visible.
The method returns false in either of the following situations:
- The element doesn't have an associated box, for example because the CSS
displayproperty is set tononeorcontents. - The element is not being rendered because the element or an ancestor
element sets the property to
hidden.
The optional parameter enables additional checks to test for other
interpretations of what "visible" means.
For example, you can further check whether an element has an opacity of
0, if the value of the element
visibility
property makes it invisible, or if the element property has a value of
auto
and its rendering is currently being skipped.
Implementation
external bool checkVisibility([CheckVisibilityOptions options]);