hit a hint function cannot draw hints for some link elements, such as "Twitter Bootstrap" style button.
because... is_viewable function checks document.elementFromPoint(rect.left, rect.top), but it found parent element if link element is rounded.
For example,
<div><a style="display:block; border-radius:4px;" href="foo">foo</a></div>
document.elementFromPoint(rect.left, rect.top); returns div element, it is not a element.
|
var _e = document.elementFromPoint(rect.left, rect.top); |
|
if (_e && (_e === elem || elem.contains(_e))) return rect; |
hit a hintfunction cannot draw hints for some link elements, such as "Twitter Bootstrap" style button.because...
is_viewablefunction checksdocument.elementFromPoint(rect.left, rect.top), but it found parent element if link element is rounded.For example,
document.elementFromPoint(rect.left, rect.top);returnsdivelement, it is notaelement.ChromeKeyconfig/Keyconfig/js/chrome_keyconfig.js
Lines 581 to 582 in 5002a42