Look up gesture is not working on shadow root text nodes
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
People
(Reporter: metasieben, Unassigned)
References
()
Details
The look up gesture(three finger tap) seems to be not working on shadow root text nodes.
Working as expected in Safari/Chrome.
STR
- Open https://mdn.github.io/web-components-examples/word-count-web-component/
- Try to look up(three finger tap) the text "Words" at the end
Reporter | ||
Updated•7 months ago
|
Comment 1•7 months ago
|
||
Previous work on this feature has been done in the panning and zooming component, so engineers familiar with that code might be found there.
Reporter | ||
Comment 2•7 months ago
|
||
You are right, thanks.
Moving to the correct component.
Comment 3•7 months ago
|
||
Given that it doesn't work text in shadow root ones, the cause is probably similar to bug 1894162, we probably just try to obtain the parent, not the shadow host. It's unlikely an APZ issue, though I don't know there the lookup feature code is.
Comment 4•7 months ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #3)
I don't know there the lookup feature code is
I think it may be here (and in particular the OnQueryTextRect
function which was also modified in this patch).
Comment 5•7 months ago
|
||
I think we were the last to touch this code when we made it work with pinch zoom on desktop.
Comment 6•7 months ago
|
||
The severity field is not set for this bug.
:botond, could you have a look please?
For more information, please visit BugBot documentation.
Updated•6 months ago
|
Updated•6 months ago
|
Comment 7•6 months ago
|
||
When trying to reproduce (which I could) we found that selecting the text in the shadow node also does not work. On the chance these bugs are related, I'm adding Bug 1562561 to 'see also'.
Description
•