Word Joiner (Unicode U+2060) doesn't inhibit line breaks at some characters like U+2009 (Thin Space,  )
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: cujyaz, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
Comment 2•6 years ago
|
||
I know this is an old bug, but this is still a problem in the latest Firefox Developer Edition [66.0b5 (64-bit) on macOS at least].
Safari and Chrome both exhibit expected behaviour on macOS.
Comment 3•3 years ago
|
||
Hello!
What kind of "confirmation" is necessary to confirm the issue and (eventually, I hope) get it done? I can personally confirm that the problem exists and is actual. :)
The Unicode standard also "can confirm", because it absolutely requires U+2060 WORD JOINER to retain its break-blocking property.
I made a very simple demo, it works as expected (no line breaks) in Safari and Chrome, but not in Firefox.
<html lang="en">
<head>
<title>Demo for #1125644</title>
<meta charset="utf-8"/>
<style>
div {
outline: 1px solid red;
margin: 10px;
width: 32px;
font-size: 16px;
}
</style>
</head>
<body>
<!-- U+200A HAIR SPACE + U+2060 WORD JOINER -->
<div>Hello, ⁠World</div>
<!-- U+2009 THIN SPACE + U+2060 WORD JOINER -->
<div>Hello, ⁠World</div>
</body>
</html>
You can also copy strings from my demo and paste them into this Unicode Utility (in "Line" test mode) to make sure that there should not be a break opportunity when using U+2060 WJ.
Comment 4•3 years ago
|
||
Presumably the new unified segmenter will fix this (bug 1684927). Ting-Yu, do you know if there's a way to test it in Gecko yet?
Comment 5•3 years ago
|
||
Yes, this is our old line breaker's bug per Unicode Line Breaking Algorithm - LB11 https://www.unicode.org/reports/tr14/#Algorithm
LB11: Do not break before or after Word joiner and related characters.
After we integrate ICU4X's line segmenter into gecko, this bug should be fixed. Currently we don't have a way to test it in Gecko yet, but we are targeting 2022Q2 to have the integration.
Comment 6•3 years ago
|
||
Wow, I will look forward to it, thank you!
Updated•2 years ago
|
Description
•