Skip to content
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

Find mode doesn't work inside elements with display property set as contents #4492

Open
victoragcosta opened this issue Jun 9, 2024 · 0 comments · May be fixed by #4493
Open

Find mode doesn't work inside elements with display property set as contents #4492

victoragcosta opened this issue Jun 9, 2024 · 0 comments · May be fixed by #4493

Comments

@victoragcosta
Copy link

Describe the bug

When using find mode (the "/" command) the search doesn't display any results inside elements with the
display property set to the value contents. I have checked the code and debugged and found that the
method element.checkVisibility() returns false when display property is contents, however, even
though these elements are hidden, its children are visible. This is extremely bad as I've noticed this
in a website with a div with style display: contents; as a parent to the whole page.

To Reproduce

Steps to reproduce the behavior:

  1. Go to URL 'https://kit.svelte.dev/docs/creating-a-project'
  2. Type "/cd<enter>"
  3. Notice how the exact word "cd" inside the codeblock isn't being highlighted.

Include a screenshot if applicable.

Browser and Vimium version

I'm using Brave version 1.66.118 with Chromium: 125.0.6422.147 (Official Version) 64 bits

I'm using Vimium version 2.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant