Open Bug 1448776 Opened 2 years ago Updated 3 months ago
Allow line-break after - (U+002D / hyphen-minus) between digits
This is a spin-off of a webcompat issue https://webcompat.com/issues/6603 Firefox will not break after the hyphen-minus while Chrome and Safari do. test case here https://codepen.io/webcompat/pen/YareqB
[Original bug title was misleading: the example shown has the hyphen-minus between two digits, not "immediately followed by a letter".] Currently, Gecko deliberately does not break in a sequence <digit, hyphen-minus, digit>: https://searchfox.org/mozilla-central/rev/003262ae12ce937950ffb8d3b0fa520d1cc38bff/intl/lwbrk/LineBreaker.cpp#793-794 Changing this could have pretty widespread implications; it's not immediately clear to me whether on balance it would be an improvement or not.
Summary: Allow line-break after - (U+002D / hyphen-minus) when immediately followed by letter. → Allow line-break after - (U+002D / hyphen-minus) between digits.
Jonathan, yup. Reporting for recording the difference, not necessary to create a change in the meantime, and given this is one site only I don't think it is a priority. Thanks for fixing the title.
Webcompat Priority: --- → ?
See Also: → https://webcompat.com/issues/40415
You need to log in before you can comment on or make changes to this bug.