diff options
| author | Stephen Blott | 2015-05-27 18:42:20 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-27 18:42:20 +0100 |
| commit | 1e874c632a452bec0d4efc24e3d9a7f0e6ba486b (patch) | |
| tree | 711238d2a7600a4f6104bcfe429568983a03adff /tests | |
| parent | c60d334b27c54b445d622a4e5ed417991ef4673f (diff) | |
| parent | 677fbc502fcd70fcb5700c04cdfdd76360b43c7e (diff) | |
| download | vimium-1e874c632a452bec0d4efc24e3d9a7f0e6ba486b.tar.bz2 | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/dom_utils_test.coffee | 9 |
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 = """ |
