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)
Tracking
()
UNCONFIRMED
People
(Reporter: dvurechensky, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
image/png
|
Details |
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.
Comment 1•8 years ago
|
||
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
Updated•8 years ago
|
Component: Layout: Tables → Layout: Text
Updated•7 years ago
|
Priority: -- → P3
Comment 2•7 years ago
|
||
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]
Updated•2 years ago
|
Severity: normal → S3
Comment 3•1 year ago
|
||
<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.
Blocks: line-breaking
You need to log in
before you can comment on or make changes to this bug.
Description
•