Closed Bug 145787 Opened 23 years ago Closed 23 years ago

TEXTAREA won't wrap text with only style-sheet widths

Categories

(Core :: Layout, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ryan, Assigned: attinasi)

Details

(Keywords: qawanted)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051006 If you have a TEXTAREA component in a form, and use something like: style="width: 500px; height: 300px" to control the size of the box, the box sizes properly, but text is not wrapped to flow inside the box. However, if you add a rows= and cols= attributes to the tag, it immediately wraps text to the dimensions of the stylesheet specified size, and ignores the cols and rows values. Reproducible: Always Steps to Reproduce: 1. Create a <TEXTAREA> box, using only CSS to determine the size of the box. View it in Mozilla. 2. Type a large amount of text into the box to the point where text should wrap, notice nothing happens. 3. Edit the file again, and add ROWS=1 and COLS=1 to the attributes of the TEXTAREA, and view it again. Type a large amount of text, and notice this time it wraps. Actual Results: Text does not wrap to the box the first time, and does the second time. Expected Results: Mozilla should have wrapped text even when just using the stylesheet specifications. <TEXTAREA style="width: 200px; height: 200px">This is a lot of text that goes inside this box but that won't be wrapped because the box doesn't do wrapping in this mode!</TEXTAREA> <TEXTAREA COLS="1" ROWS="1" style="width: 200px; height: 200px">This is a lot of text that goes inside this box but that does wrapped because the box does it correctly now.!</TEXTAREA>
cc'ing kin. A testcase would be real nice.
Keywords: qawanted
Well, seems I can't repro it under RC3 now (2002052306) so I guess it's been fixed.
Marking WFM in the OS X May 23 build (2002-05-23-05 1.0.0).
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.