Note: There are a few cases of duplicates in user autocompletion which are being worked on.

letter-spacing: pieces of text overlap with one another




Layout: Text
16 years ago
4 years ago


(Reporter: Dan Tobias, Unassigned)


({css1, testcase})

Windows 98
css1, testcase

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [CSS1-5.4.2], URL)


(9 attachments, 1 obsolete attachment)



16 years ago
I'm not positive whether this is actually a bug in Mozilla, since that page has
a number of HTML validation errors, but on the page at the cited URL, my copy of
Mozilla always renders it with the end of "Andrés Puentes" overlapping the
beginning of "hizo bien en perdonar".  It seems to be the result of the
application of CSS classes to the respective text fragments.

Comment 1

16 years ago
Created attachment 54365 [details]
Clip from screen shot showing overlap, in case it's not reproduced on your system
WFM 2001101909 on Win2k. Reporter: Which build are you using?

You may wish to try a more recent build:
(as always, be sure to delete your old Mozilla directory before installing the
new one)

Also, in future, please use the Bugzilla Helper:
(among other things, it automagically adds your Build ID)
Confirmed.  Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5+) Gecko/20011019

Had to look at the screenshot before I saw it, though.  Recommend anyone else
look at said screenshot before checking this bug.

Here's the offending source:

<td WIDTH="468"><font face="Arial" size="2" color="#FFFFFF"
class="arbknegro16">¿Crees que <b>Andrés Puentes</b> hizo bien en perdonar a
Ever confirmed: true
WeirdAl: I saw the overlap in the screenshot, but I didn't see that same overlap
when I loaded the URL.. Did you see the overlap in both the screenshot and the URL?

Comment 5

16 years ago
I do not see this on Win2000 - looks fine (and I did look at the screenshot).

Petersen, can you check on win98 with a new build?
Yep, still there in both the URL and the screenshot.

Something strange about this.  Why is the bolded text wider than the non-bolded
in that section?

Rembrandt:  how about a screen shot from you?  Might help for comparison.
WFM, yesterday's Linux CVS.
Created attachment 54555 [details]
screenshot provided per Alex's request
I think this is a fonts problem.  Arial is not a font that maintains constant
width of its characters, like Courier New does.  Note Mr. Hoess's screenshot has
a totally different font.

I don't have a font exactly named Arial on my system.  I have Arial (Arabic),
Arial (Baltic)... all the way to Arial (Western).  In Mozilla, though, I am
using the Western set.  The font face is specifically set in the tag to "Arial".

Mr. Hoess doesn't have it either -- he says that's Adobe Times font on his machine.

Comment 10

16 years ago
Created attachment 54562 [details]
screenshot linux 2001102106 with arial font
OK, something I notice with R.K.Aa's screenshot versus the reporter's (which is
what I see).  The bolded text is wider on our Win98 machines.  It is the same
width on the Linux boxes.
Hey, here's something.

Win98:  bug occurs when Preferences -> Appearance, Fonts, Allow document to use
other fonts is checked.  When unchecked, looks fine.
Stylesheet for the document:

    COLOR: #000000;
    FONT-FAMILY: arial black;
    FONT-SIZE: 16px;
    FONT-WEIGHT: normal;

Created attachment 54578 [details]
Win2k screenshot w/ Arial installed & w/ "Allow document... fonts"
Created attachment 54600 [details]
Testcase, greatly simplified
All right.  After a lot of pruning, I've reduced the original page to a testcase
which is, on my system anyway, very clearly showing a bug.

    FONT-FAMILY: arial black;
    FONT-SIZE: 24px;

The part that gets my attention is the -5px part.  Are negative values allowed
for CSS letter spacing?

Again, on my system, the Arial Black font gets wider when bolded.  But
apparently, the rendering engine is not correctly handling the width change.
Created attachment 54605 [details]
Win2k 2001102203 screenshot of testcase
OK, I think we've established pretty clearly this bug applies to Win98, but not
Linux or Win2K.  :)

I'll attach a Win98 screenshot of same testcase in a moment.
Summary: Pieces of text overlap with one another → letter-spacing: pieces of text overlap with one another
WeirdAl: Negative values are definitely allowed in letter-spacing:
Created attachment 54607 [details]
2001102203 testcase screenshot, Win98SE

Comment 22

16 years ago
This is getting interesting - a Win98 font problem maybe? How does IE on Win98
handle the reduced testcase (or the URL for that matter)? Have they figured out
how to 'work around' the font differences?
Created attachment 54756 [details]
IE6 screenshot of testcase (it passes)
qawanted:  I'd like to see if it's specific to Win98, or if Win95, WinME also
show this bug.  :)  Also, we've had no word on whether or not Mac or WinNT
systems reflect it.

My Win95 machine is down; I expect it to be that way for another week.
Keywords: qawanted


16 years ago
Target Milestone: --- → mozilla1.1

Comment 25

16 years ago
Here's another page with a text overlap problem, this time vertical rather than

Comment 26

16 years ago
Re: the QaWanted in comment 24:

I see this bug on WinME (build id 2002012203), Win98 (build ID 2002012403), but
not WinNT (build ID 2002012403).
Keywords: testcase
Whiteboard: [CSS1-5.4.2]

Comment 27

15 years ago
Confirming. Build 2002052408 Win2K

Comment 28

15 years ago
I believe I'm seeing this or something similar on as well! Take
a look at the end of the text in the my attached screenshot.
I'm running Build ID 2002-06-11-08 on Windows 98.

Comment 29

15 years ago
Created attachment 87294 [details]
The bug, on our own

Notice the link at the end of the text in the picture.
P.M.: AFAIK does not use "letter-spacing"; this is an unrelated and
separately fixed bug. Please do not attach testcases/screenshots to this bug
that do not correspond to the description.

Comment 31

15 years ago
Can confirm this bug in Mozilla 1.2.1 (OS X) and Chimera 0.6 when viewing, for

Seems to occur at style transitions (text size, italic/roman)

Comment 32

15 years ago
looks fine on my machine: win2k pro, sp3, mozilla build 2003010408.

Comment 33

15 years ago
Nothing wrong here: Win2k SP3 build Mozilla/5.0 (Windows; U; Windows NT 5.0;
en-US; rv:1.4a) Gecko/20030228
Attachment #87294 - Attachment is obsolete: true
The bug is still visible in the reduced testcase in build 2003052508 on Windows
XP. ->Fonts & Text
Component: Layout → Layout: Fonts and Text

Comment 35

14 years ago
Target Milestone: mozilla1.1alpha → Future
Build 2003101104 on Windows XP is now rendering the reduced testcase fine
initially, but selecting the text in question causes part of the "s" to disappear.
Assignee: attinasi → font
QA Contact: chrispetersen → ian

Comment 37

13 years ago
Created attachment 170352 [details]
no space between style transition



13 years ago
Keywords: css1

Comment 38

12 years ago
I'm seeing this in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060331 Firefox/1.6a1

A few examples: uses letter-spacing:-1px; in the little text at the top-right of the page. Currently, this build of Firefox is not actioning the letter-spacing:-1px at all - the right-hand side is jumbled and overlapped, and hangs off the side of the page.

For a more severe example, try which uses letter-spacing:-1px for all links. Notice how the underlining of the links is the correct length, but the text is too long (since letter-spacing is not being applied), and that links which are close together are overlapping each other.

Both these pages display fine on current production versions of Firefox (and MSIE), and on Mac OSX nightly builds of Firefox. I am at least partially responsible for both the websites linked to in this posting.
Assignee: layout.fonts-and-text → nobody
QA Contact: ian → layout.fonts-and-text

Comment 39

4 years ago
WFM with the attached test case on Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0

Please only reopen this bug if you have a testcase it can be reproduced with (most links in the comments above are invalid are the pages have changed too much).
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME


4 years ago
Keywords: qawanted
You need to log in before you can comment on or make changes to this bug.