Closed
Bug 369437
Opened 18 years ago
Closed 18 years ago
Breaking hyphens do not break
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: daniel, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
Based on this Unicode spec: http://www.unicode.org/reports/tr14/
In firefox the following characters are behaving like non-breaking characters but according to the spec they are supposed to provide a break opportunity:
U+058A ARMENIAN HYPHEN
U+2010 HYPHEN
U+2012 FIGURE DASH
U+2013 EN DASH
Also the spec mentions that HYPHEN-MINUS (U+002D) should act like HYPHEN (U+2010) if used in a context where it is meant as a hyphen. Figuring out meaning from context is next to impossible but a hyphen used between 2 alphabetic characters is probably a good enough rule of thumb.
MSIE and Opera use those characters as break opportunities. In the case of HYPHEN-MINUS I wouldn't say it is always the semantically correct thing to do, but I find it is far more useful than keeping long hyphenated expressions glued together.
Reproducible: Always
Steps to Reproduce:
1.create an html file with:
<p>ARMENIAN HYPHEN word֊word֊word֊word֊word֊word֊word֊word֊word֊word֊word
<p>HYPHEN word‐word‐word‐word‐word‐word‐word‐word‐word‐word‐word
<p>FIGURE DASH word‒word‒word‒word‒word‒word‒word‒word‒word‒word‒word
<p>EN DASH word–word–word–word–word–word–word–word–word–word–word
<p>HYPHEN-MINUS word-word-word-word-word-word-word-word-word-word-word
2. look at the page in a very narrow window
Actual Results:
single lines of unbroken text, horizontal scrolling
Expected Results:
lines should be broken at dash/hyphens
Updated•18 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•