Open Bug 1322115 Opened 8 years ago Updated 1 year ago

line-breaking in <digit><hyphen><digit> sequences [was: word breaking in strings with zero]

Categories

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

50 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: dvurechensky, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: testcase)

Attachments

(1 file)

Attached image ff bug.png (deleted) —
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36 Steps to reproduce: I have a table with a HEX-string in some cell like this - 11-00-00-00-00-00-00-02. In firefox the string is not breaking to next line but it is if there is not zeros in it. Here is plunker for better understanding - http://plnkr.co/edit/N6e7MGnYndtQmLYSkjBb?p=preview. Works fine in other browsers. Expected results: The string shoud break to other line.
Component: Untriaged → Layout: Tables
Keywords: testcase
Product: Firefox → Core
Also interesting: 11-00-00-00-0B-00-0G-02 wraps to 11-00-00-00-0B 00-0G-02 but not 11-00-00-00-0B-00-00-02
Component: Layout: Tables → Layout: Text
Priority: -- → P3
Compare: data:text/html,<div style="width:1px">abcdefg-hijklmnop data:text/html,<div style="width:1px">abcdefg9-hijklmnop data:text/html,<div style="width:1px">abcdefg-9hijklmnop data:text/html,<div style="width:1px">abcdefg9-9hijklmnop Firefox doesn't allow line-break at a hyphen if the hyphen is between two digits, but it does allow it between letters, or between a letter and a digit (in either order). This appears to be the intended behavior[1] but perhaps isn't always the best option. [1] http://searchfox.org/mozilla-central/rev/f6dc0e40b51a37c34e1683865395e72e7fca592c/intl/lwbrk/nsJISx4051LineBreaker.cpp#799-800
Summary: word breaking in strings with zero → line-breaking in <digit><hyphen><digit> sequences [was: word breaking in strings with zero]
Severity: normal → S3

<NU> + <HY> + <NU> isn't break opportunity according to UAX14 (LB21, LB24 and LB25). Blink and WebKit doesn't seem to use
ICU for 7bit character.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: