Closed Bug 343390 Opened 19 years ago Closed 19 years ago

  followed by space at the end of an RTL line causes the text to be shifted to the left

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: uriber, Assigned: uriber)

References

Details

(Keywords: regression, rtl, testcase)

Attachments

(2 files)

When an RTL line ends with one or more  s, followed by a space, the entire line is painted to the left of where it should be (as if the spaces where on the right side, instead of the left). Selection and caret movement in this case are also messed up. This comes up especially in designMode, where  s are createded when typing multiple adjacent spaces. This is a regression from my fix for bug 337135. Testcase coming soon.
Attached file testcase
Keywords: testcase
I can reproduce on Win XP. Please change OS and Hardware to "All"
OS: Mac OS X 10.3 → All
Hardware: Macintosh → All
Attached patch patchSplinter Review
Limit the fix for bug 337135 to the -moz-pre-wrap case only.
Attachment #227896 - Flags: superreview?(roc)
Attachment #227896 - Flags: review?(roc)
Status: NEW → ASSIGNED
Attachment #227896 - Flags: superreview?(roc)
Attachment #227896 - Flags: superreview+
Attachment #227896 - Flags: review?(roc)
Attachment #227896 - Flags: review+
Checked in: Checking in layout/generic/nsTextFrame.cpp; /cvsroot/mozilla/layout/generic/nsTextFrame.cpp,v <-- nsTextFrame.cpp new revision: 1.580; previous revision: 1.579 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Should the fix apply to 'white-space: pre' as well? (Most callers that check 'white-space' should use the methods on nsStyleText for checking two values, although I see why this one might only apply to one value.)
(In reply to comment #5) > Should the fix apply to 'white-space: pre' as well? (Most callers that check > 'white-space' should use the methods on nsStyleText for checking two values, > although I see why this one might only apply to one value.) > In practice, bug 337135 did not occur in "pre" (the code I linked to in bug 337135 comment #6 is never reached in this case). Therefore, I thought it was unnecessary to apply the fix to "pre". The current bug didn't occur with "pre" either, so applying the fix to that case probably wouldn't hurt. Let me know if you want me to do that.
CC'ing dbaron for comment #6.
No, the current situation is fine, then.
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: layout.bidi → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: