In the main text, some of the text passes the right side of the container in WebKit (but not in Firefox or Opera). This is due to the presence of a span that's absolutely positioned.
Created attachment 19056 [details] Test case
Created attachment 19244 [details] Simpler test case The firstChild/listChild checks in bidi.cpp's inlineWidth() are inadequate, so findNextLineBreak() never adds the right padding.
Created attachment 460432 [details] Safari 15.5 matches other browsers I am unable to reproduce this bug using "Simpler Test case" and other (but attached screenshot of only one) in Safari 15.5 on macOS 12.4. The output matches with all other browsers as shown in the screenshot. It might be fixed along the lines or I might be testing it incorrectly. If it is latter, please ignore my comment but if it is former, can this be marked as "RESOLVED CONFIGURATION CHANGED"? Thanks!