-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Text as direct child of shadow-root prevents link hint #4620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For what it's worth: My UI looks pretty much the same as yours @philc , however I'm not getting the link hint on the date either, just like in @sersorrel 's example. The issue seems to be Firefox specific - at least it works fine for me in Chromium. My tests just now were on the latest Vimium 2.2.1 releases on:
|
Indeed it seems Firefox-specific. (I think GitHub updated their UI since I opened this issue, and I had a small amount of custom CSS at the time as well, but the problem still reproduces for me, in Firefox but not in Chrome.) Try placing a breakpoint at link_hints.js:1284, hitting f, and stepping twice; in Chrome, I see MDN recommends against using
|
Ah, I'm noticing now that it was originally reported in Firefox. I reproduced this in Firefox. Thanks for the fix! |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Given the following structure, where
<custom-element>
is the root of a shadow DOM:a link hint will not appear on the
<a>
even though it should.The cause is that
LocalHints.getElementFromPoint
does not return any element (because it sees that<custom-element>
is a shadow root and tries to recurse into it, butelementsFromPoint
apparently does not return text nodes), so thenonOverlappingHints
step decides that the<a>
element is not actually visible.To Reproduce
Steps to reproduce the behavior:
Browser and Vimium version
Firefox 134.0.2, Vimium 2.1.2
The text was updated successfully, but these errors were encountered: