A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/csswg-drafts/issues/6309 below:

[css-text-4] whitespace inside text areas · Issue #6309 · w3c/csswg-drafts · GitHub

Inside <textarea>, browsers handle whitespace:normal differently:

Chrome silently replaces normal with pre-wrap. Edge used to do this too.
FF/Safari keep normal as is.

Having normal whitespace causes a non-WYSIWYG editing experience for the user. Spaces are not displayed as users type them, but they remain in DOM.

My opinion is that Chrome's behavior is desirable, because typing spaces and seeing nothing happen would be very confusing for the user, and the backend that receives a form with random white spacing that "looks good in the browser".

Does csswg have an opinion on what the right thing to do is?

Bugs:
Center and right justified text in textarea is not visually aligned properly.

Can't enter leading/trailing spaces in TEXTAREA with white-space:normal or nowrap


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3