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

CTRL + F Highlights #459

Closed
karl-police opened this issue Sep 11, 2022 · 2 comments
Closed

CTRL + F Highlights #459

karl-police opened this issue Sep 11, 2022 · 2 comments

Comments

@karl-police
Copy link

karl-police commented Sep 11, 2022

These things are missing
image

which are present on Google Chrome as example, when you use CTRL + F to highlight where results were found. Unfortunately the JavaScript version doesn't have it because it is something entirely different

Google Chrome does have an overlay scrollbar flag, but it's not in JS, though does have those things still

I am not sure if javascript can track that CTRL + F window, there might be hacky ways to do it, but what about a good way?

The only way I can imagine, is to prevent the default function of CTRL + F and instead override it with a custom search window

 
I don't know why in css-drafts they don't wanna change it, so that the overlay scrollbars can be done just with CSS again:

w3c/csswg-drafts#6090

w3c/csswg-drafts#7716

apparently they are unable to add a parameter like "overlay" to the scrollbar-gutter or something and allow boxes to be transparent and overlap other boxes, because they said that implementors wouldn't have enough interest to implement it

@KingSora
Copy link
Owner

Good day @karl-police

I'm afraid there is no way I could add this easily.. This is a limitation of all scrollbar plugins since this feature relies on the native browser scrollbar.

@karl-police
Copy link
Author

Good day @karl-police

I'm afraid there is no way I could add this easily.. This is a limitation of all scrollbar plugins since this feature relies on the native browser scrollbar.

Yeah I thought so. I mean maybe if a CTRL + F window gets recoded and then add that what Google Chrome would be doing. Drawing those rectangles would be questionable though, like with fixed positions or something idk.

I hope CSSWG-Drafts will give scrollbar-gutter the ability to overlay over the page. But I don't think it's going to happen any soon.

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

No branches or pull requests

2 participants