Bug 74489 - extra space rendered when opposite-dir span gets wrapped just before inline-block span
Summary: extra space rendered when opposite-dir span gets wrapped just before inline-b...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 00:46 PST by Aharon (Vladimir) Lanin
Modified: 2011-12-14 01:04 PST (History)
7 users (show)

See Also:


Attachments
test case (ref file coming as separate attachment) (1.20 KB, text/html)
2011-12-14 00:46 PST, Aharon (Vladimir) Lanin
no flags Details
ref file for the test case above (1.04 KB, text/html)
2011-12-14 00:49 PST, Aharon (Vladimir) Lanin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aharon (Vladimir) Lanin 2011-12-14 00:46:53 PST
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.
Comment 1 Aharon (Vladimir) Lanin 2011-12-14 00:49:29 PST
Created attachment 119175 [details]
ref file for the test case above