Open Bug 390441 Opened 17 years ago Updated 2 years ago

Incorrect font size in textarea due to space in lang attribute


(Core :: Layout: Text and Fonts, defect)





(Reporter: vincent-moz, Unassigned)



(2 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv: Gecko/20070725 Firefox/
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv: Gecko/20070725 Firefox/

A space in a lang attribute makes Firefox use a wrong font size in lines that do not contain accented characters, e.g.
  <textarea name="details" rows="5" cols="10" lang="fr "></textarea>

Reproducible: Always

Steps to Reproduce:
1. Open the HTML file that will be attached.
2. Enter
     line 1 e
     line 2 é
     line 3
   in both textareas.
Actual Results:  
The first textarea is incorrect: wrong size of the box, lines without accented characters also have a wrong size.

Expected Results:  
The first textarea should be like the second one.
Attached file Testcase
WFM, Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20070725 Firefox/

Maybe related to bug 390064 somehow?
(In reply to comment #3)
> Maybe related to bug 390064 somehow?

I don't think so: I can't reproduce this bug.
In fact, the problem is related to the fact that for the Monospace font, I have Monaco in "Western" and Courier in "Other Languages". If I get it to Monaco too, the problem disappears. So, it seems that there are two bugs:
1. "fr " is seen as "other language".
2. The font size depends on the language declared in the source (instead of what the user writes in the textarea).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/

I can't reproduce this bug either.
Setting OS to All since I can reproduce the bug under Linux/ppc after changing the monospace font of "Other Languages".
OS: Mac OS X → All
Ever confirmed: true
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.