Closed Bug 188597 Opened 23 years ago Closed 22 years ago

for xul:textbox; CSS's property "text-align" does nothing;

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.5alpha

People

(Reporter: afatecha, Assigned: afatecha)

References

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 if you have a xul:textbox and a sytlesheet with a property: "text-align: right;" nothing happens, because html:input doesn't have: "text-align: inherit;" Reproducible: Always Steps to Reproduce: 1. in XUL: <textbox class="mytxt" value="hi,man"/> 2. in CSS: .mytxt { text-align: right;} 3. Nothing happens. Actual Results: text is left aligned yet. Expected Results: in all textbox.css (modern and classic) add a single line: text-align: inherit; into: html|textbox-input, html|textbox-textarea{ ... text-align: inherit; /* new line */ }
Attached file testcase
this file has a textbox and a button, button change an attribute into the textbox. it's all. the problem is in css. need bug188597.css.
Attached file testcase
this file need bug188597.xul contain the real problem. Solution required add one line in every textbox.css html|input{ ... text-align: inherit; //added }
Yeah, adding that to either textbox.css or just as an inline style rule in the XBL binding would make sense.... (I almost favor the latter over the former since then theme authors don't have to deal with this....)
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 81060 has been marked as a duplicate of this bug. ***
Couldn't we put that in xul.css, or a toolkit/global textbox.css?
Yeah, that would be better than inline style. ;) Either of those is good with me.
isn't closed?, ok, I'll post the proposed patch, inserting line in xul.css, like said jag(Peter Annema)
Attached patch patching xul.cssSplinter Review
adding: text-align: inherit;
Attachment #114093 - Flags: superreview?(bzbarsky)
Attachment #114093 - Flags: review?(jaggernaut)
Comment on attachment 114093 [details] [diff] [review] patching xul.css As the file says, one of the reviewers needs to be hyatt (@apple.com, not @netscape.com). Pleaes mail him personally; he does not read bugmail.
Attachment #114093 - Flags: superreview?(bzbarsky) → superreview?(hyatt)
Comment on attachment 114093 [details] [diff] [review] patching xul.css r=jag. Looks good to me. hyatt?
Attachment #114093 - Flags: review?(jaggernaut) → review+
hyatt is busy
Assignee: hyatt → afatecha
Attachment #114093 - Flags: superreview?(hyatt) → superreview?(ben)
Attachment #114093 - Flags: superreview?(ben) → superreview?(hewitt)
Priority: -- → P3
Whiteboard: [patch, super-review]
Target Milestone: --- → mozilla1.5alpha
Attachment #114093 - Flags: superreview?(hewitt) → superreview?(jst)
Comment on attachment 114093 [details] [diff] [review] patching xul.css sr=jst
Attachment #114093 - Flags: superreview?(jst) → superreview+
patch is r+ and sr+. Questions: what now? can I check it into the tree? change resolution to "fixed"?
Whiteboard: [patch, super-review]
If you want it for 1.4b or 1.4, you need to request a= (see the options when you edit the attachment). If for 1.5a, ask someone to check it in for you once the tree reopens.
Comment on attachment 114093 [details] [diff] [review] patching xul.css thanks :)
Attachment #114093 - Flags: approval1.4b?
Attachment #114093 - Flags: approval1.4b? → approval1.4b+
ok, patch has approval1.4b+ sorry, but more questions: change resolution to "fixed"? when is the patch inserted into the tree?
When someone checks it in. I'll try to do that tonight.
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
thanks... :)
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: