This is a regression, happens in nightly build r41128, but not in Safari 3.2.1.
Bidi text "MSN Arabia رياضه، أخبار، مرآة، أفلام، موسيقى، جمال، سيارات، اقتصاد و المزيد على" was truncated wrong when the following style was specified:
The truncation seems wrongly truncated the leading English characters.
test case is attached.
Created attachment 28008 [details]
text overflow truncation
Also in Chrome bug
The reason that the English text run is truncated is because of the way the loop in InlineFlowBox::placeEllipsisBox() works.
It iterates over all of it's children from left to right till it finds the one containing the ellipsis, all boxes after that one are marked as hidden. This happens when foundBox is set to true.
The fix is to change the order of iteration for the RTL case so we can correctly truncate the children to the left of the ellipsis.
Created attachment 29400 [details]
Vary the order of iteration based on direction.
Created attachment 29401 [details]
Add bug URL to changelog
Comment on attachment 29401 [details]
Clearing review flag since I'm rolling this fix into the patch for bug 25135.
Fixed in http://trac.webkit.org/changeset/43664.