RESOLVED CONFIGURATION CHANGED 265953
Breaking lines stop working correctly when more than 125 text nodes are added to a span tag
https://bugs.webkit.org/show_bug.cgi?id=265953
Summary Breaking lines stop working correctly when more than 125 text nodes are added...
Gabriel Dantas
Reported 2023-12-06 11:09:32 PST
When there is a span tag that contains more than 125 text nodes in it, if the span's parent has a word-spacing greater than 0px, the width of the span element stops respecting its parent width. It's worth noting that the amount of pixels that will exceed the width is equivalent to the sum of space's pixels defined by word-spacing. When the amount of the text nodes exceed 125 it looks like the calculation of the spacing stops counting the defined word-spacing and it starting breaking the lines as it is 0px. Here is an example: https://codesandbox.io/p/sandbox/safari-breaks
Attachments
Ahmad Saleem
Comment 1 2023-12-06 13:27:03 PST
It seems to be not reproducible in Safari Technology Preview 183 and it matches with 'Firefox Nightly 122' and 'Chrome Canary 121'. Might be fixed or progressed.
zalan
Comment 2 2023-12-06 14:22:05 PST
This is an IFC progression (we used to dynamically fall back to legacy line layout after a certain amount of frequent content mutations...but not anymore).
Note You need to log in before you can comment on or make changes to this bug.