aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormrmr19932014-12-17 12:47:38 +0000
committermrmr19932014-12-17 12:47:38 +0000
commit833942ae06f680bc1949a7bced4719b707950568 (patch)
treedbd1160179b2eff5e135cdc789c141269e10598c /tests
parent82beb23ce138505f0358ec8e15a56d20db6846dd (diff)
downloadvimium-833942ae06f680bc1949a7bced4719b707950568.tar.bz2
Stop ignoring clickable opacity: none; elements
Some websites (notably Facebook) use `opacity: none;` to show an image in the place of a less-customisable element (eg. an `<input type="file" />`). To not show link hints for such transparent elements is confusing and often the wrong thing to do.
Diffstat (limited to 'tests')
-rw-r--r--tests/dom_tests/dom_utils_test.coffee6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/dom_tests/dom_utils_test.coffee b/tests/dom_tests/dom_utils_test.coffee
index 130a3014..ad8bde3c 100644
--- a/tests/dom_tests/dom_utils_test.coffee
+++ b/tests/dom_tests/dom_utils_test.coffee
@@ -50,12 +50,6 @@ context "Check visibility",
assert.isTrue (DomUtils.getVisibleClientRect document.getElementById 'foo') != null
assert.isTrue (DomUtils.getVisibleClientRect document.getElementById 'bar') != null
- should "detect opacity:0 links as hidden", ->
- document.getElementById("test-div").innerHTML = """
- <a id='foo' style='opacity:0'>test</a>
- """
- assert.equal null, DomUtils.getVisibleClientRect document.getElementById 'foo'
-
should "detect links that contain only floated / absolutely-positioned divs as visible", ->
document.getElementById("test-div").innerHTML = """
<a id='foo'>