Closed Bug 28219 Opened 25 years ago Closed 24 years ago

font-family dosn't work with textarea when cols attribute is used. [FONT]

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: andrew, Assigned: attinasi)

References

()

Details

(Keywords: css1)

Attachments

(3 files)

      No description provided.
Please provide more information and a test case or url. Reassigning to Rods.
Assignee: karnaze → rods
I have put together a basic page demonstrating the problem at the URL given.

A couple of other related problems showed up in putting the page together too.
I've corrected an accidental redirect in my bug demo page at
  http://wrms.cat-it.co.nz/mozilla-bug-demo.php
so it should be possible to see what I mean now.  Sorry about that!
I just looked at the page with Windows build 2000022108 and I am seeing the same 
problems.
I guess this is a duplicate (or perhaps a superset) of 
http://bugzilla.mozilla.org/show_bug.cgi?id=18232
This seems fixed now. The only problem left on the page is that the textarea has
 wrong font.

Would be nice if you submitted a minimal testcase showing only the textarea-font
problem (think you should get the BugAThon creds for this bug).

Changing summary and confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Form style not applied during data entry → font-family dosn't work with textarea.
font issue for textarea
Assignee: rods → buster
Target Milestone: --- → M18
Reassigning to beppe (editor).
Assignee: buster → beppe
this is a css issue, assigning to cmanske for confirmation.
Assignee: beppe → cmanske
I see a "Courier" font in the textarea, not Tahoma, sans-serif.
I have the new "ender lite" turned on, so this issue now goes to mjudge.
Assignee: cmanske → mjudge
Keywords: css1
the text areas simply inherit their font via style.  If the wrong font is 
showing up then the style system is giving the text area the wrong one. 
assigning to marc.
Assignee: mjudge → attinasi
The textarea is reverting to the monospaced font when the COLS attribute is 
defined. If you remvoe the cols attribute then the font-family is used 
correctly. I'll attach a simple testcase demonstrating this, and then I'll try 
to fogure out why (if it is intentional or not). CC'ing RodS. too since he can 
probably help.
Status: NEW → ASSIGNED
Summary: font-family dosn't work with textarea. → font-family dosn't work with textarea when cols attribut is used.
Looking at the style contexts it appears that the textarea itself is fine, 
however there is a DIV that is a child of the textarea and that is where the 
difference is seen: in the case where the TEXTAREA has the COLS attribute, the 
child DIV has 'font-family: monospace' as a rule, and when there is no COLS 
attribute, the child DIV does not have the font-family rule. I'll attach a dump 
of the contexts that shows the difference (pasting it into bugzill awould make 
it unreadable).

Summary: font-family dosn't work with textarea when cols attribut is used. → font-family dosn't work with textarea when cols attribute is used.
Hey Rod, is this intentional? When COLS is specified on a textarea, do we want 
to revert to monospaced font? I haven't found the code that is changing the font 
yet and I thought you might know...
Moving all non-nsbeta3 bugs to future milestone: these will be worked on after 
beta3/rtm.
Target Milestone: M18 → Future
Summary: font-family dosn't work with textarea when cols attribute is used. → font-family dosn't work with textarea when cols attribute is used. [FONT]
The style now appears correctly formatted with the Linux build 20000925, so I am
happy to consider this fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updating QA contact.
QA Contact: ckritzer → bsharma
verified on build 2001-08-07-80-trunk
Status: RESOLVED → VERIFIED
somethings still wrong here... if i use the following stylesheet:

* { font-family: verdana; }
textarea { font-family: monospace;}

the textarea uses verdana! (mozilla 0.9.6)

i attached a testcase...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: