2 ms·
That’s not entirely true is it? Browsers can hyphenate (using the hyphen property in CSS) but it only supports certain languages, which need to be specified in
by steve_adams_86 6y ago
That’s not entirely true is it? Browsers can hyphenate (using the hyphen property in CSS) but it only supports certain languages, which need to be specified in the lang attribute of the html tag.
- oefrha 6y agoSupport just isn't universal enough.[1] In particular, for Chromium-based, > Only supported on Android & Mac platforms (and only the "auto" value) for now. Even where the property is supported, the supported language matrix [2] tells a depressing story. [1] https://caniuse.com/#feat=css-hyphens https://caniuse.com/#feat=css-hyphens [2] https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens#Browser_compatibility https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens#Bro...
- steve_adams_86 6y agoWow, I should know better. That’s pretty awful support.
- userbinator 6y agobut it only supports certain languages Probably because hyphenation is itself a rabbit-hole of complexity; some languages may require a complete dictionary to determine where words can be hyphenated, and sometimes it could depend on what style guide you follow, etc.