Closed Bug 20515 Opened 25 years ago Closed 25 years ago

[DOGFOOD]font can NOT be overriden with style for input text

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 17303

People

(Reporter: rods, Assigned: pierre)

Details

(Whiteboard: [PDT-])

Attachments

(1 file)

The html.css sets the font for input type=text to "-moz-fixed" which sets it to a monospaced font (courier). If I set the font via inline style to sans-serif it does not change the text field's font it remains monospace. This used to work a few weeks ago when I was doing all my form control sizing work and most specifically the text field. I did the work using both the default font and sans-serif. This is a DOGFOOD because the font is used to calculate the height and width of the text control and if it isn't correct then the text controls get sized incorrectly and pages layout badly.
Summary: [DOGFOOD]font can be overriden with style for input text → [DOGFOOD]font can NOT be overriden with style for input text
Attached file demonstrates the problem (deleted) —
correcting summary
Whiteboard: [PDT-]
We're marking this PDT-, unless the text is complete illegible.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
It's a dup of bug 17303. The font family is overridden by a hard-coded style rule called PlaintextInitalStyle in nsTextEditRules.cpp. It means that all the text input fields in the application are in monospace font. *** This bug has been marked as a duplicate of 17303 ***
Status: RESOLVED → VERIFIED
Verified dup of #17303
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: