When breaking in the middle of a word, BreakingContext::handleText() will erroneously try to break at every single code point, rather than considering grapheme clusters unbreakable (which it should).
I am having an issue on Safari only (Version 15) where some emojis are being rendered with a visual artefact when the `overflow-wrap: break-word;` is applied and the width of the containing div is too small compared to the `font-size` of the emoji. I suspect that it is related to this issue. Here is a reproduction of the issue, https://codepen.io/brendandonovan/pen/rNzPyzW.
Yep, that sounds like this bug.
(In reply to Brendan Donovan from comment #1) > I am having an issue on Safari only (Version 15) where some emojis are being > rendered with a visual artefact when the `overflow-wrap: break-word;` is > applied and the width of the containing div is too small compared to the > `font-size` of the emoji. > > I suspect that it is related to this issue. > > Here is a reproduction of the issue, > https://codepen.io/brendandonovan/pen/rNzPyzW. At least this test now run fine in Safari 17, Chrome Canary 119 and Firefox Nightly 120. @Myles - is this still applicable in general?
IFC does not break inside grapheme clusters. (IFC progression)