Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Should there be a feature to disallow DOM subtrees from find-in-page matching? #167

Open
chrishtr opened this issue May 20, 2020 · 2 comments

Comments

@chrishtr
Copy link
Collaborator

Example:

https://twitter.com/omar_degan/status/1135263048351043586

Click on the image. There will be another faded image behind it that is not really "visible" to the user yet still draws pixels, and therefore the UX should not match it in find-in-page.

@bgirard

@chrishtr
Copy link
Collaborator Author

I guess sites could abuse this feature in a user-hostile way.

However, user-select already exists for the selection feature, and that one seems a stronger case for abuse from sites than find-in-page, since it makes it hard to cut-and-paste "copyrighted" or otherwise restricted text.

https://drafts.csswg.org/css-ui-4/#propdef-user-select

@vmpstr
Copy link
Collaborator

vmpstr commented May 28, 2020

I think that's a reasonable feature to have. Is there a viable workaround here? I guess what I'm wondering if this necessitates a new feature or whether we can do some other techniques to do this... The reason I'm wondering is that I think this case might be frequently overlooked by developers, and so not necessarily widely requested.

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

No branches or pull requests

2 participants