I am trying to build a site with dynamic user content in different languages.
For example:
<p lang="en">disestablishment</p>
<p lang="de">Käsekuchenbäckereibesitzer</p>
<p lang="fr">Consciencieuse</p>
<p lang="it">Imbarazzato</p>
<p lang="es">decepcionado</p>
I am using CSS to activate hyphenation:
p[lang] {
width: 60px;
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
It seems to work great on my machine, but I tried to find out if this works also on other platforms and machines. So I tried it on BrowserStack and got very different results:
| unprefixed | en | de | fr | it | es | |
|---|---|---|---|---|---|---|
| android 11 | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| ios 14 | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| chrome 90 big sur | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| edge 90 big sur | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| ff 88 big sur | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
| safari 14 big sur | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| chrome 90 el capitan | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| ff 88 el capitan | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
| chrome 90 windows 7 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| edge 90 windows 7 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| ff 88 windows 7 | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
| chrome 90 windows 10 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| edge 90 windows 10 | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| ff 88 windows 10 | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
I found also support tables which are very different from my results:
- mozdev hyphen support
- caniuse EN hyphens
- caniuse DE hyphens
- caniuse FR hyphens
- caniuse IT hyphens
- caniuse ES hyphens
Could this be caused by languages installed on the operation systems?