Re: [csswg-drafts] [css-ui] Single-line `textarea` or auto-wrapping `input` (#10019)

I don't really get the point of forbidding line breaks if the text can wrap into multiple lines anyways?

The Google textbox from your image accepts newlines (since it's a `<textarea>`). It just has a `keydown` event listener that submits the query when you press enter. But it can be bypassed via Shift+enter, or by pasting text with newlines.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10019#issuecomment-1976463748 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 4 March 2024 12:22:00 UTC