Bug 155615 - font-size: 0 on textarea causes Enter to be ignored rather than type newline
Summary: font-size: 0 on textarea causes Enter to be ignored rather than type newline
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://output.jsbin.com/lubezo/3/
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 17:36 PDT by Han
Modified: 2022-06-09 13:50 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Han 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/
Comment 1 Han 2016-03-17 17:49:24 PDT
Chrome has the same problem: https://bugs.chromium.org/p/chromium/issues/detail?id=595932
Comment 2 Han 2016-03-17 18:28:26 PDT
Updated Chromium issue: https://bugs.chromium.org/p/chromium/issues/detail?id=595943
Comment 3 Ahmad Saleem 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!
Comment 4 Alexey Proskuryakov 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.
Comment 5 Han 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)