Incorrect font size in textarea due to space in lang attribute

NEW
Unassigned

Status

()

Core
Layout: Text
--
minor
10 years ago
10 years ago

People

(Reporter: Vincent Lefevre, Unassigned)

Tracking

Trunk
PowerPC
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

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

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.
(Reporter)

Comment 1

10 years ago
Created attachment 274752 [details]
Testcase
(Reporter)

Comment 2

10 years ago
Created attachment 274753 [details]
Snapshot showing both textareas with the 3 lines

Comment 3

10 years ago
WFM, Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Maybe related to bug 390064 somehow?
(Reporter)

Comment 4

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

I don't think so: I can't reproduce this bug.
(Reporter)

Comment 5

10 years ago
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).

Comment 6

10 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

I can't reproduce this bug either.
(Reporter)

Comment 7

10 years ago
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
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.