Closed
Bug 43420
Opened 24 years ago
Closed 24 years ago
textarea inherits align="center" from parent td
Categories
(Core :: Layout: Form Controls, defect, P3)
Core
Layout: Form Controls
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: kleist, Assigned: pierre)
References
()
Details
(Whiteboard: Suggest fix to WG.)
Attachments
(2 files)
819 bytes,
patch
|
Details | Diff | Splinter Review | |
388 bytes,
text/html
|
Details |
The text in the input field becomes centered. Possible cause: The "td" element which is the parent to the "textarea" element has the "align" attribute set to "center". This is hardly the desired effect of this attribute, the text should be left-aligned (as it is in Netscape 4.7 / Opera 3.62 / IE 5).
Comment 1•24 years ago
|
||
Still looking at what might be causing this one - CC'in Mike in case he knows, but I'm seeing it on NT too.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Summary: "textarea" seems to inherit ' align="center" ' from parent "td" → "textarea" seems to inherit ' align="center" ' from parent "td"
Comment 2•24 years ago
|
||
This is probably being inherited because align=center is mapped into text-align css attribute in MapAttributesInto for nsHTMLTableCellElement. Somehow it looks like this css is getting inherited into the table. Handing of to Mike and CC'ing Pierre in case he has some insight.
Assignee: clayton → mjudge
Component: Layout → HTML Form Controls
Summary: "textarea" seems to inherit ' align="center" ' from parent "td" → textarea inherits align="center" from parent td
Assignee | ||
Comment 3•24 years ago
|
||
Text fields should not inherit the text-align property. Their alignment should be reset to the default for the current direction ('ltr' or 'rtl'). Reassigned to rods.
Assignee: mjudge → rods
Comment 5•24 years ago
|
||
giving this one to Simon to see if he can help resolve the issue
Assignee: beppe → sfraser
Target Milestone: --- → M18
Reassign to mjudge@netscape.com. This is fallout from Ender-Lite. The old heavy-weight text widgets had a similar problem, but buster@netscape.com fixed it.
Assignee: beppe → mjudge
Cc'ing kin@netscape.com
Perhaps this fix should be either: 1) quirks-mode only, or 2) in ua.css, so the author can override it if desired
Comment 10•24 years ago
|
||
SImon I gave it to you for load balancing of the bugs, but that's ok
Comment 11•24 years ago
|
||
beppe: my sloughing off of this bug was probably a bit premature. But now that ender-light is on, I don't think that there is any editor-specific code that deals with styling the text field contents; this should all happen within layout. So I think this bug needs to go back to them.
Assignee | ||
Comment 12•24 years ago
|
||
I'm taking it back. I'll look into DBaron's suggestion of fixing it in ua.css. Note to self: check the result when editing centered static fields in Composer.
Assignee: mjudge → pierre
Comment 13•24 years ago
|
||
FWIW, This also impacts Zope pretty badly - it renders the textareas that are used heavily almost unusable.
Assignee | ||
Comment 14•24 years ago
|
||
David & Ian: I propose to fix this by adding a '-moz-default' value to the 'text-align' property in order to reset the alignement (left or right) according to the direction (ltr or rtl). Instead of using '-moz-default', we could also support 'default' and ask the WG what they think. In html.css, the INPUT element defines 'text-align:left'. A cheap way of fixing the bug would have been to do the same thing for TEXTAREA elements and let the i18n folks deal with the problem in r-t-l systems.
Status: NEW → ASSIGNED
Assignee | ||
Comment 15•24 years ago
|
||
Assignee | ||
Comment 16•24 years ago
|
||
Comment 17•24 years ago
|
||
-moz-default sounds good to me, we should also suggest it for CSS3.
Whiteboard: Suggest fix to WG.
Assignee | ||
Comment 18•24 years ago
|
||
Fix checked in: html.css nsCSSKeywordList.h nsCSSProps.cpp
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 19•24 years ago
|
||
How is this different from Bug 46987? If it isn't, this has regressed.
Comment 20•24 years ago
|
||
I'm running M17 of the missing build id, but help/about gives me Mozilla/5.0 (X11; U; Linux 2.2.16-3 i686; en-US; m17) Gecko/20000807 this wasn't checked into the m17 branch or something? I still have this problem and yeah, bug 46987 looks awful familiar
Comment 21•24 years ago
|
||
Change QA contact to ckritzer@netscape.com
QA Contact: petersen → ckritzer
Comment 23•23 years ago
|
||
Verified Build 2001081303 os:win95,mac8.6,winNT
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•