aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Blott2015-05-27 17:31:03 +0100
committerStephen Blott2015-05-27 17:31:03 +0100
commit677fbc502fcd70fcb5700c04cdfdd76360b43c7e (patch)
tree86efa965ad59b6d3c2e5deb54b3c1e27f9d148f5 /tests
parent47d48b3a786cbf155f2deba00d556d41e74651c8 (diff)
parent3b3fb93e1151bf7f1090f130f2c3554d35cc77d5 (diff)
downloadvimium-677fbc502fcd70fcb5700c04cdfdd76360b43c7e.tar.bz2
Merge pull request #1616 from mrmr1993/detect-inline-inline-fontSize-elements
Fix for #1554.
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 = """