Consider making `white-space: pre-wrap` for `<textare>` to be `!important`
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 3.2k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 38
Description
There are webcompat issues reported to Firefox for that, specifying white-space: normal on <textarea> makes whitespace collapes inside the text box, see bug 1386100, and bug 1426068 (affecting YouTube).
I think Firefox's current behavior on this is conformant to what is said in CSS Text spec and HTML spec, but I can understand that it is probably not desirable. And I cannot figure out a usecase that author may want different whitespace behavior for <textarea>.
Given this, I guess we can probably change the presentational hint of <textarea> to something like
textarea { white-space: pre-wrap !important; }
so that the rendering matches the behavior of WebKit and Blink without adding any HTML rendering magic.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked Firefox bugs 1386100 and 1426068, then compare the proposed textarea presentational hint with the CSS Text and HTML spec sections cited in the issue. Done means the standards discussion reaches a decision on whether the hint should change and records the agreed behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, html
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100