The word uncoöperative should have a break opportunity between o and ö with hyphens:auto
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: Waldo, Unassigned)
References
()
Details
Comment 1•5 years ago
|
||
'hyphens: auto' requires the language to be defined, known and be valid in the first place. The lang attribute value should be valid and - in my opinion - the text for which hyphenation can occur must be found in some dictionary or in the hyphenation resource fetched by the browser.
"
Correct automatic hyphenation requires a hyphenation resource appropriate to the language of the text being broken. The UA must therefore only automatically hyphenate text for which the content language is known and for which it has an appropriate hyphenation resource.
"
CSS3 Text, section 5.4 Hyphenation: the hyphens property, 'hyphens: auto' description
https://www.w3.org/TR/css-text-3/#valdef-hyphens-auto
Jeff, in your code example, there is no lang attribute specification given.
WithOUT lang="en":
data:text/html;charset=UTF-8,<style>div { width: 6em; hyphens: auto; border: black solid medium; }</style><div>uncooperative uncooperative uncooperative uncooperative</div>
and there is no hyphenation occuring in Firefox Firefox 68.2.0esr.
With lang="en":
data:text/html;charset=UTF-8,<style>div { width: 6em; hyphens: auto; border: black solid medium; }</style><div lang="en">uncooperative uncooperative uncooperative uncooperative</div>
and here, hyphenation occurs.
This works as expected and according to spec in Firefox 68.2.0esr.
In my opinion, this bug report is INVALID.
Comment 2•5 years ago
|
||
"hyphenation is not applied when language is not specified"
has been tested too
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/text/auto-hyphenation-8.html
The lang
restriction probably didn't exist at the time this bug report was filed and wasn't the point of the report. I've fixed the URL.
Comment 4•5 years ago
|
||
I think it is invalid for other and different reasons. "uncoöperative" is not an English word. So why should it be hyphenated?
I have filed another bug report - bug 1599649 - , btw, which is why I commented in here because I was searching for a duplicate.
Comment 5•5 years ago
|
||
"uncoöperative" is a valid English spelling, although not commonly seen in modern usage. https://www.dictionary.com/browse/dieresis
Updated•2 years ago
|
Description
•