Word-Break not working in Chromium Embedded Framework (CEF)

96 Views Asked by At

I have a website that sometimes contains long words (classic german) inside a container. The page is mostly shown in an embedded browser: either CEF (Chromium) or WebView2 (Edge).

The problem is: the CEF won't add hyphens to long words. While it works on the standard Chrome browser and the embedded WebView2, the CEF will just hard break long words:

cef not working

I made sure that:

  1. the page has a lang tag (in this case de-de)
  2. the item has different css properties which should add hyphenation:
overflow-wrap: break-word;
word-break: break-word;
hyphens: auto;

Not sure whether a "working example" makes sense, since it only occurs on the CEF (and I don't know whether there is a possibility to emulate this?).

0

There are 0 best solutions below