Closed
Bug 324870
Opened 19 years ago
Closed 17 years ago
RTL text moves when selecting in text with text-align: justify (Cairo builds)
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
WORKSFORME
mozilla1.9alpha6
People
(Reporter: martijn.martijn, Assigned: masayuki)
References
Details
(Keywords: regression, rtl, testcase)
Attachments
(3 files, 2 obsolete files)
See upcoming testcase. All the lines in the testcase should look identical (except for the parts that are selected).
Reporter | ||
Updated•19 years ago
|
Summary: Text moves when selectiing in text with text-align: justify (Cairo builds) → Text moves when selecting in text with text-align: justify (Cairo builds)
Reporter | ||
Comment 1•19 years ago
|
||
Updated•19 years ago
|
Whiteboard: cairo
Other way around -- fixing 327184 should fix this as well.
Comment 3•18 years ago
|
||
It appears from this test case: https://bugzilla.mozilla.org/attachment.cgi?id=197187&action=view that text doesn't get justified in cairo builds.
Comment 4•18 years ago
|
||
This also occurs under Linux: OS should be set to All.
Comment 5•18 years ago
|
||
*** Bug 323697 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Updated•18 years ago
|
Updated•18 years ago
|
Flags: blocking1.9a1?
Comment 7•18 years ago
|
||
Fixed on linux, too. Sometime between 06-19 and 06-26, but I don't feel like downloading more builds to check. A quick trip through bonsai shows a checkin 2006-06-21 07:13 Bug 327184 CSS property letter-spacing rendered incorrectly r=pavlov So I'd put my money on that.
Comment 8•18 years ago
|
||
-> WORKSFORME since we don't know what fixed this.
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: blocking1.9a1?
OS: Linux → All
Hardware: PC → All
Resolution: --- → WORKSFORME
Whiteboard: cairo
Assignee | ||
Comment 9•18 years ago
|
||
-> REOPEN. This a large part is fixed by bug 327184. But some Linux environments, I have a report this bug.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Assignee | ||
Updated•18 years ago
|
Assignee: nobody → masayuki
Status: REOPENED → NEW
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 10•18 years ago
|
||
The original testcase (attachment 209763 [details]) seems OK to me, on Windows.
In this testcase, there are some Hebrew words and it still buggy.
Comment 11•18 years ago
|
||
(In reply to comment #10) > The original testcase (attachment 209763 [details] [edit]) seems OK to me, on Windows. > In this testcase, there are some Hebrew words and it still buggy. I confirm, also selecting seem to go wrong. I.e. select from the first letter to the 3rd line: selection seem to get inverted.
Assignee | ||
Comment 12•18 years ago
|
||
I confirmed the RTL problem on Linux too. I have an idea for fix it. I'll work on it.
Comment 13•18 years ago
|
||
(In reply to comment #11) > I confirm, also selecting seem to go wrong. > I.e. select from the first letter to the 3rd line: selection seem to get > inverted. The selection "inverting" is correct behavior for RTL characters as far as I can tell, the bug is that the text shifts around a few pixels this way and that as you change the selection.
Comment 14•18 years ago
|
||
The only problem I can see in the second testcase is that the text moves a bit when selecting the text. The first letter in RTL languages is always at the right edge.
Comment 15•18 years ago
|
||
(In reply to comment #13) > The selection "inverting" is correct behavior for RTL characters as far as I > can tell Of course, I forgot that Hebrew is written from right to left. My bad.
Assignee | ||
Comment 16•18 years ago
|
||
Assignee | ||
Comment 17•18 years ago
|
||
This patch doesn't work fine. I think that we should align the RTL text to right edge of the text frame. But this patch cannot do it. I have no idea what is wrong... Note that currently, we are drawing following process. 1. draw right segment to left segment. i.e., if there are following segment: [Hebrew non-selected(C)][Hebrew selected(B)][Hebrew non-selected(A)] we draw A -> B -> C. 2. fix the spacing left to right in each segment. the base position of the spacing is left side of the segment.
Attachment #231133 -
Flags: review-
Assignee | ||
Comment 18•18 years ago
|
||
I find a bug of RTL justification code in nsTextFrame. See bug 346417 But it is not all.
Keywords: regression
Updated•18 years ago
|
Flags: blocking1.9?
Comment 19•18 years ago
|
||
found that today...I'm not shure if that has anything to do with this bug or if I sould open a new one.
Assignee | ||
Comment 20•18 years ago
|
||
(In reply to comment #19) > Created an attachment (id=250175) [details] > testcase > > found that today...I'm not shure if that has anything to do with this bug or if > I sould open a new one. > if you use mac, see bug 361581
Comment 21•18 years ago
|
||
(In reply to comment #20) > (In reply to comment #19) > > Created an attachment (id=250175) [details] [details] > > testcase > > > > found that today...I'm not shure if that has anything to do with this bug or if > > I sould open a new one. > > > > if you use mac, see bug 361581 > i use linux, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a2pre) Gecko/20070102 Minefield/3.0a2pre The strange thing is that sometimes it goes away if you open new tabs and firefox needs to be reopened to reproduce it...
Assignee | ||
Updated•18 years ago
|
Attachment #230740 -
Attachment mime type: text/html → text/html; charset=windows-1255
Assignee | ||
Updated•18 years ago
|
Attachment #231127 -
Attachment mime type: text/html → text/html; charset=windows-1255
Assignee | ||
Updated•18 years ago
|
Attachment #250175 -
Attachment is obsolete: true
Assignee | ||
Updated•18 years ago
|
Attachment #209763 -
Attachment is obsolete: true
Assignee | ||
Comment 22•18 years ago
|
||
O.K. This bug is only opened for RTL text selection bug. Please file a new bug.
Summary: Text moves when selecting in text with text-align: justify (Cairo builds) → RTL text moves when selecting in text with text-align: justify (Cairo builds)
Comment 23•18 years ago
|
||
opened bug 365715
Flags: blocking1.9? → blocking1.9+
Target Milestone: --- → mozilla1.9alpha6
Assignee | ||
Comment 24•17 years ago
|
||
-> WFM this should be fixed by new textframe.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago → 17 years ago
Resolution: --- → WORKSFORME
Comment 25•16 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
You need to log in
before you can comment on or make changes to this bug.
Description
•