aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
authorJez Ng2012-10-29 17:34:51 -0400
committerJez Ng2012-10-29 17:35:37 -0400
commit0964cf83b338915f9c0e3e0b581e4995ba4fb742 (patch)
tree6941da4d87c41b62194ab5a0249f238ac7dc8bb3 /lib/dom_utils.coffee
parentba3f283e90c95d7b03e585098567606be1064937 (diff)
downloadvimium-0964cf83b338915f9c0e3e0b581e4995ba4fb742.tar.bz2
More tests, because I like having coverage.
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index a99cb5a6..38b23202 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -59,7 +59,8 @@ DomUtils =
# eliminate invisible elements (see test_harnesses/visibility_test.html)
computedStyle = window.getComputedStyle(element, null)
if (computedStyle.getPropertyValue('visibility') != 'visible' ||
- computedStyle.getPropertyValue('display') == 'none')
+ computedStyle.getPropertyValue('display') == 'none' ||
+ computedStyle.getPropertyValue('opacity') == '0')
continue
return clientRect