WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
155615
font-size: 0 on textarea causes Enter to be ignored rather than type newline
https://bugs.webkit.org/show_bug.cgi?id=155615
Summary
font-size: 0 on textarea causes Enter to be ignored rather than type newline
Han
Reported
2016-03-17 17:36:33 PDT
On both the latest WebKit Nightly "Version 9.0.3 (10601.4.4,
r198327
)" and the latest stable Safari 9.0.3, font-size: 0 on a textarea causes the Enter key to be ignored rather than typing a newline like it should:
http://output.jsbin.com/lubezo/3/
Attachments
Add attachment
proposed patch, testcase, etc.
Han
Comment 1
2016-03-17 17:49:24 PDT
Chrome has the same problem:
https://bugs.chromium.org/p/chromium/issues/detail?id=595932
Han
Comment 2
2016-03-17 18:28:26 PDT
Updated Chromium issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=595943
Ahmad Saleem
Comment 3
2022-05-30 14:46:04 PDT
Safari 15.5 matches Firefox Nightly 102 behavior while in case of Chrome Canary 104, the associated bug as mentioned in
Comment 03
has been marked as WON'T FIX. Further, on the Chrome bug, it is mentioned that it can be potential fingerprinting issue because it can used to determine "zoom level", which are persistent across sessions and reboots. Thanks!
Alexey Proskuryakov
Comment 4
2022-05-31 10:11:08 PDT
I don't see the fingerprinting aspect here - first, this is about zero size which is the same at any zoom level; and second, I'm sure that zoom level is very detectable in other ways. I'm leaving this to forms and editing experts to decide whether to close this. We may be compatible with Chrome, but this seems like a weird behavior.
Han
Comment 5
2022-06-09 13:50:37 PDT
Sorry—I don't think I ever opened an ticket for it but the potential fingerprinting issue being referred to is explained here:
https://github.com/mathquill/mathquill/issues/584#issuecomment-255258007
Basically if you set font-size: 1px on the textarea, typing works at a normal zoom level, but not at a 90% zoom level (at least at the time of writing that issue comment)
Ahmad Saleem
Comment 6
2024-05-17 14:38:56 PDT
Test Case:
https://jsbin.com/lubezo/3/edit?html,output
*** Safari Technology Preview 194 *** keydown, "" keypress, "" input, " " keyup, " " *** Firefox Nightly 128 *** keydown, "" keypress, "" input, " " keyup, " " *** Chrome Canary 127 *** keydown, "" keypress, "" keyup, ""
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug