Closed
Bug 260817
Opened 20 years ago
Closed 14 years ago
text-align:justify doesn't work in textarea
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
INVALID
People
(Reporter: tlatzelsberger, Unassigned)
References
()
Details
(Keywords: testcase, Whiteboard: [invalid?])
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040921 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040921 see example. left, right and center work, but justify looks like left. Reproducible: Always Steps to Reproduce: 1. see example 2. 3. Actual Results: text-align:justify looks like text-align:left Expected Results: text-align:justify looks like text-align:justify
Comment 1•20 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040920 Firefox/0.10 Ditto. Strange, there's no previous bug on this. Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•20 years ago
|
||
Currently the TEXTAREA works like: # <div style="text-align:justify"> # foo<br> # bar<br> # quuz foo bar # </div> And Mozilla is correct in not aligning that. However, there is bug on it since Mozilla is not supposed to do that (making use of BR); marking dependency.
Depends on: 240933
Hardware: PC → All
Reporter | ||
Comment 3•20 years ago
|
||
i think your example is a bit misleading because text-align:justify only shows an effect if the test is long enough to be wrapped automatically. and if you finish a short line with a <br> (or a newline in textarea) then there is of course no difference to text-align:left. the URL i gave should demonstrate what i mean. left, center and right work perfectly so i would expect justify to work as well.
Comment 4•20 years ago
|
||
That is exactly how TEXTAREA works. When you think the line just goes to the other line at the end, Mozilla inserts a BR element. (Instead of normal wrapping.) Therefore it can't be aligned justified. It isn't misleading at all, it shows how it (incorrectly) works.
Reporter | ||
Comment 5•20 years ago
|
||
ah, sorry. then i just misunderstood you because i would never have assumed that mozilla inserts <br>s itself. :-o
Comment 6•14 years ago
|
||
I don't understand what the br nodes had to do with this bug. We don't justify the text which is pre-formatted, as is the case for textarea elements. Roc, please correct me if I'm wrong.
No longer depends on: 240933
Whiteboard: [invalid?]
That is correct.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•