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)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
People
(Reporter: uriber, Assigned: uriber)
References
Details
(Keywords: regression, rtl, testcase)
Attachments
(2 files)
|
416 bytes,
text/html
|
Details | |
|
1.56 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
| Assignee | ||
Updated•19 years ago
|
OS: Mac OS X 10.3 → All
Hardware: Macintosh → All
| Assignee | ||
Comment 3•19 years ago
|
||
Limit the fix for bug 337135 to the -moz-pre-wrap case only.
Attachment #227896 -
Flags: superreview?(roc)
Attachment #227896 -
Flags: review?(roc)
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Attachment #227896 -
Flags: superreview?(roc)
Attachment #227896 -
Flags: superreview+
Attachment #227896 -
Flags: review?(roc)
Attachment #227896 -
Flags: review+
| Assignee | ||
Comment 4•19 years ago
|
||
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.)
| Assignee | ||
Comment 6•19 years ago
|
||
(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.
| Assignee | ||
Comment 7•19 years ago
|
||
CC'ing dbaron for comment #6.
No, the current situation is fine, then.
Comment 9•18 years ago
|
||
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.
Description
•