Bug fix for element visibility
This commit fixes a bug where the computed display property of a media
resource was not being properly determined. In particular, the isVisible
method was only considering the element style attribute of the supplied
element and its ancestors.