Closed Bug 150341 Opened 23 years ago Closed 23 years ago

[FIX]during login not able to type capital letters

Categories

(Core :: Layout: Form Controls, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.2beta

People

(Reporter: rrk9, Assigned: bzbarsky)

References

()

Details

Attachments

(2 files, 1 obsolete file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 BuildID: 2002053012 during login not able to type capital letters partially or fully Reproducible: Always Steps to Reproduce: 1.pl go to this URL and type any login name with fully or partially having capital letters 2. 3.
Attached file Minimal testcase
The problem is that "text-transform:lowercase" is inherited into the form controls and into their anonymous children... Should all form controls simply have text-transform: none in forms.css? It's a little counterintuitive for text-transform to inherit into them... Or should we not be inheriting this into anonymous content in the first place?
Assignee: sgehani → dbaron
Status: UNCONFIRMED → NEW
Component: XP Apps → Style System
Ever confirmed: true
OS: Windows XP → All
QA Contact: paw → ian
Hardware: PC → All
Why is it counter-intuitive? But I don't mind us adding a (non-important) rule to forms.css for this, sure.
Such a style should be on the form controls.
Assignee: dbaron → rods
Component: Style System → HTML Form Controls
QA Contact: ian → tpreston
I can't do commercial build and this needs PSM for testing, over to kin
Assignee: rods → kin
Attached patch The fix (obsolete) — Splinter Review
Comment on attachment 90210 [details] [diff] [review] The fix It might be better to put this in DIV_STRING and DIV_STRING_SINGLELINE in nsGfxTextControlFrame2.cpp.
Wouldn't that make it impossible for content authors to actually specify a text-transform on the <input> or <textarea> if they really want one?
bz: It's not UA !important, it's just a regular UA rule. If author's specify text-transform on the form element, it will override the forms.css rule. But the rule should be added to the appropriate blocks; there's no need for text-transform to be separated out.
Attached patch No new ruleSplinter Review
I was referring to comment 7 in comment 8. If we added the rule to those strings there would be no way for page authors to override it. Same fix as originally, without the new rule.
Attachment #90210 - Attachment is obsolete: true
-->glazman Daniel--how much of a difference would it make to put the style on the div instead of in forms.css? (See comment 7)
Assignee: kin → glazman
Keywords: patch
I think that the CSS rule option is better. Whatever we do, it does not change the data entered in a textarea, only the rendering is changed. So it makes sense, from my point of view to allow "text-transform: lowercase" on an inout or a textarea. /me votes in favor of the CSS rule as shown by Boris.
Assignee: glazman → bzbarsky
glazou, is that an r=? ;)
Comment on attachment 90388 [details] [diff] [review] No new rule yes, that's a r=glazman naive question : any xul element like textbox affected by this too ?
Attachment #90388 - Flags: review+
>any xul element like textbox affected by this too ? Yes, since IIRC, XUL form inputs use <input>/<textarea> through an XBL binding.
Priority: -- → P3
Summary: during login not able to type capital letters → [FIX]during login not able to type capital letters
Target Milestone: --- → mozilla1.2beta
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 109884 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: