[Webkit-unassigned] [Bug 265953] New: Breaking lines stop working correctly when more than 125 text nodes are added to a span tag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 6 11:09:32 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=265953
Bug ID: 265953
Summary: Breaking lines stop working correctly when more than
125 text nodes are added to a span tag
Product: WebKit
Version: Safari 17
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gabrielnsdantas at gmail.com
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231206/9d78999b/attachment.htm>
More information about the webkit-unassigned
mailing list