n1k0/casperjs — pull request #123 by marcelduran (2012-05-26 01:42:15+00:00)
Title: Element visibility should be verified from its computed styles

In order to tell whether an element is visible or not, both visibility and display properties should be verified from its compute styles.

problem:
looking at `el.style.visibility` is only valid if such element visibility style was set directly inline via JS or style attribute, i.e: `el.style.visibility = 'hidden'` or `

`
An invisible element could have empty style and yet be invisible if set via via css. e.g: `

`.

solution:
look at element computed styles (both visibility and display)