Created attachment 119174 [details] test case (ref file coming as separate attachment) When you have <div>ltr text <span dir="rtl">RTL TEXT</span></div>, and the opposite-direction span happens to get wrapped, only one space is supposed to be rendered between the last word of the ltr text and the part of the RTL TEXT that fits on the same line. And this works correctly, too. However, ifwe have: <div>ltr text <span dir="rtl">RTL <span style="display:inline-block; width:10000px> </span></span></div>, two spaces are rendered after the last word of the ltr text. Please note that the extra space does not reproduce if the inline-block span is replaced with lorem ipsum or a padded span.
Created attachment 119175 [details] ref file for the test case above
I am unable to reproduce this bug using attached test case using Safari 15.6 on macOS 12.5 and both boxes render same with just one space rather than two spaces as mentioned in Comment 0. It renders same across other browser (Firefox Nightly 105 and Chrome Canary 106). I am going to mark this as "RESOLVED CONFIGURATION CHANGED", in case if it is still present, please update and reopen this bug and give rationale for others as well for clarity in testing. Thanks!