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

[cssom] scroll event support for textearea and input[type=text] elements #4376

Open
Yaffle opened this issue Sep 26, 2019 · 1 comment
Open
Labels

Comments

@Yaffle
Copy link

Yaffle commented Sep 26, 2019

Hello,

Can the scroll event support for textarea and input[type=text] elements be specified?

Current scroll event support:

browser input[type=text] textarea[wrap=off]
Safari - +
Chrome - +
Firefox + +
Edge + +

update: Chrome 111 does fire the event, Safari 16.1 still does not.

It seems, all these browsers also support scrollLeft property for those elements.

I have opened an issue at https://bugs.chromium.org/p/chromium/issues/detail?id=1007153#c3 .

I am trying to make a text editing widget with a syntax highlighting based on a transparent input element with non-transparent caret (caret-color/-webkit-fill-text-color).
May be, the use case is wrong, and I should try to use contenteditable=plaintext-only, scrollbar-width: none; and do something to prevent line breaks (btw, what ?), but the browser support is not good now.

@emilio emilio added the cssom-1 label Sep 27, 2019
@emilio
Copy link
Collaborator

emilio commented Sep 27, 2019

If they support scroll* there's no reason WebKit shouldn't support scroll events, IMO.

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

No branches or pull requests

2 participants