Closed
Bug 335359
Opened 18 years ago
Closed 16 years ago
cannot see caret easily if caret is between some Chinese characters
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: masayuki, Assigned: roc)
References
Details
(Keywords: jp-critical, regression)
Attachments
(3 files)
843 bytes,
image/png
|
Details | |
614 bytes,
image/png
|
Details | |
6.49 KB,
patch
|
mrbkap
:
review+
mrbkap
:
superreview+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
Now, bug 287813 and bug 334635 were fixed, we can see the new caret that is same color as forground color, and that is not ineverted. Therefore, when the caret is between some Chenese characters, we cannot see the caret to easy. See screenshot.
Updated•18 years ago
|
Summary: cannot see caret to easy if caret is between some Chinese characters → cannot see caret easily if caret is between some Chinese characters
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Comment 2•18 years ago
|
||
I think that we have two way for fix. 1. the caret should be drawn non-background-color and non-foreground color. 2. we should ensure that the caret drawn area doesn't have any glyphs. I think that (2) is not good for some languages. Because current implement breaks some script if the text has letter-spacing. But I don't know what color is best for the caret in (1).
Reporter | ||
Updated•18 years ago
|
Keywords: regression
Assignee | ||
Comment 3•18 years ago
|
||
what if we make the caret wider?
Reporter | ||
Comment 4•18 years ago
|
||
(In reply to comment #3) > what if we make the caret wider? Yeah, it's cool.
Comment 5•18 years ago
|
||
Just for Chinese text? (A wide caret for English text, like Mozilla used to have, is kinda ugly and non-standard.)
Reporter | ||
Comment 6•18 years ago
|
||
(In reply to comment #5) > Just for Chinese text? (A wide caret for English text, like Mozilla used to > have, is kinda ugly and non-standard.) No, for all scripts. I'll work on this ASAP if nobody work on this.
Assignee | ||
Comment 7•18 years ago
|
||
Making the caret wider based on a test of the Unicode character before/after it should be not too hard to do.
Reporter | ||
Comment 9•18 years ago
|
||
wide caret(2px) is good for Chinese characters, but for latain text, I think that this seems to be too thick. Is it O.K.?
Assignee | ||
Comment 10•18 years ago
|
||
How about making it 2px wide if it's between two CJK characters, otherwise 1px?
Reporter | ||
Comment 11•18 years ago
|
||
Um... I don't have an idea for it. But I try it.
Comment 12•18 years ago
|
||
*** Bug 336086 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 13•18 years ago
|
||
We have a dup(bug 336086) that said the 't' has same problem. This is difficult, because this bug depends on the font.
Comment 14•18 years ago
|
||
(In reply to comment #13) > We have a dup(bug 336086) that said the 't' has same problem. This is > difficult, because this bug depends on the font. > I was the reporter of that one... its interesting to note that it does not seem to occur with any numbers at all but does with some characters.
Flags: blocking1.9?
Assignee | ||
Updated•18 years ago
|
Flags: blocking1.9?
Whiteboard: [wanted-1.9]
Updated•17 years ago
|
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Assignee | ||
Updated•16 years ago
|
Assignee: masayuki → roc
Assignee | ||
Comment 15•16 years ago
|
||
This turned out to be incredibly simple. The patch makes the caret an extra CSS pixel thicker when it's positioned at a Kanji character. Seems to work great. Masayuki, please try the patch and tell me if you like it.
Attachment #316946 -
Flags: superreview?(mrbkap)
Attachment #316946 -
Flags: review?(mrbkap)
Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs review]
Comment 16•16 years ago
|
||
Comment on attachment 316946 [details] [diff] [review] fix Is it possible to replace the magic numbers with a meaningful identifier or a pointer to where you got them from? r+sr=mrbkap either way.
Attachment #316946 -
Flags: superreview?(mrbkap)
Attachment #316946 -
Flags: superreview+
Attachment #316946 -
Flags: review?(mrbkap)
Attachment #316946 -
Flags: review+
Assignee | ||
Comment 17•16 years ago
|
||
Sure, will do.
Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs review] → [needs approval]
Assignee | ||
Comment 18•16 years ago
|
||
Comment on attachment 316946 [details] [diff] [review] fix Simple, low-risk fix for a CJK usability regression.
Attachment #316946 -
Flags: approval1.9?
Comment 19•16 years ago
|
||
Comment on attachment 316946 [details] [diff] [review] fix a1.9+=damons
Attachment #316946 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 20•16 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 21•16 years ago
|
||
-> v. But the flexible caret width behavior is pretty strange. If I found some better idea, I'll file a new bug. But now this is ok. The accessibility issue is gone. Thank you, roc.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs approval]
You need to log in
before you can comment on or make changes to this bug.
Description
•