Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Firefox now breaks after a hyphen, under some conditions - what happened?

6 views
Skip to first unread message

Jukka K. Korpela

unread,
Jul 31, 2010, 4:01:29 AM7/31/10
to
I accidentally noticed that Firefox 3.6.6 breaks a word like "world-famous"
in two lines, after the hyphen, when the word does not fit into the
available width as a whole but the first part does. That is, it treats the
hyphen as allowing a line break after it, as Internet Explorer has done for
a long time (always?).

When did this happen? I'm pretty sure this a relatively new feature in
Firefox, and I did not find any description of it.

A quick test,
http://www.cs.tut.fi/~jkorpela/test/hyphens.html
suggests that Firefox behaves much more reasonably than IE. In particular,
it does not break after a word-initial hyphen, and it seems to break a
hyphenated compound like world-famous only if there are at least five
letters on each side of the hyphen. But what are the exact conditions?

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Andreas Prilop

unread,
Aug 2, 2010, 12:58:26 PM8/2/10
to
On Sat, 31 Jul 2010, Jukka K. Korpela wrote:

> I accidentally noticed that Firefox 3.6.6 breaks a word like "world-famous"
> in two lines, after the hyphen,

> When did this happen?

Starting with version 3.0, I believe. I tested with "Iceweasel 3.0.6"
(rv:1.9.0.14), which wraps as you describe: at least five characters
are necessary.

> I did not find any description of it.

https://bugzilla.mozilla.org/show_bug.cgi?id=95067

--
In memoriam Alan J. Flavell
http://groups.google.co.uk/groups/search?q=author:Alan.J.Flavell

0 new messages