aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Blott2015-05-27 18:42:20 +0100
committerStephen Blott2015-05-27 18:42:20 +0100
commit1e874c632a452bec0d4efc24e3d9a7f0e6ba486b (patch)
tree711238d2a7600a4f6104bcfe429568983a03adff /tests
parentc60d334b27c54b445d622a4e5ed417991ef4673f (diff)
parent677fbc502fcd70fcb5700c04cdfdd76360b43c7e (diff)
downloadvimium-1e874c632a452bec0d4efc24e3d9a7f0e6ba486b.tar.bz2
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tests')
-rw-r--r--tests/dom_tests/dom_utils_test.coffee9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/dom_tests/dom_utils_test.coffee b/tests/dom_tests/dom_utils_test.coffee
index e98dc958..ce8fa370 100644
--- a/tests/dom_tests/dom_utils_test.coffee
+++ b/tests/dom_tests/dom_utils_test.coffee
@@ -73,6 +73,15 @@ context "Check visibility",
"""
assert.equal null, (DomUtils.getVisibleClientRect (document.getElementById 'foo'), true)
+ should "detect font-size: 0; and display: inline; links when their children are display: inline", ->
+ # This test represents the minimal test case covering issue #1554.
+ document.getElementById("test-div").innerHTML = """
+ <a id='foo' style='display: inline; font-size: 0px;'>
+ <div style='display: inline; font-size: 16px;'>test</div>
+ </a>
+ """
+ assert.isTrue (DomUtils.getVisibleClientRect (document.getElementById 'foo'), true) != null
+
should "detect links inside opacity:0 elements as visible", ->
# XXX This is an expected failure. See issue #16.
document.getElementById("test-div").innerHTML = """