Watir's visible? method iterates up the DOM element tree and checks if any of
the parent elements has visibility attribute set to hidden. If any of the
parents is hidden then visible? returns false and that's it.
In case of the following html:
```html
<div id="parent" style="display: block; visibility:hidden;">
<div id="child" style="display: block; visibility:visible;">
Visibility Check.
</div>
</div>
```
visible? will return false because "parent" div is hidden.
However the div is actually visible in the browser.
The standard says:
definition of hidden: The generated box is invisible (fully transparent,
nothing is drawn), but still affects layout. Furthermore, descendants of the
element will be visible if they have 'visibility: visible'.
(http://w3.org/TR/CSS21/visufx.html)
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-classic/issues/52
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development