WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
152635
Caret displays in the wrong place in an RTL text field
https://bugs.webkit.org/show_bug.cgi?id=152635
Summary
Caret displays in the wrong place in an RTL text field
Simon Fraser (smfr)
Reported
2015-12-31 21:14:51 PST
Created
attachment 268067
[details]
Testcase; type in the second field When typing in an RTL text input, the caret shows on the left side, even though characters are being inserted on the right side.
Attachments
Testcase; type in the second field
(322 bytes, text/html)
2015-12-31 21:14 PST
,
Simon Fraser (smfr)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2016-01-17 11:20:44 PST
This seems to be behaving correctly, and in agreement with Cocoa text fields (when not using a split caret): roughly speaking, in a right-to-left paragraph, the caret position indicates where the next right-to-left character would appear.
Simon Fraser (smfr)
Comment 2
2016-01-17 12:24:55 PST
But it doesn't agree with Firefox, and seems confusing; the characters don't appear where the caret is, when it's at the start or end of the field. In addition, shift-right-arrow expands the selection to the left.
Simon Fraser (smfr)
Comment 3
2016-01-17 12:28:28 PST
Cocoa shows a split caret in the instances where we get it wrong (at the ends).
mitz
Comment 4
2016-01-17 12:31:29 PST
(In reply to
comment #2
)
> But it doesn't agree with Firefox, and seems confusing; the characters don't > appear where the caret is, when it's at the start or end of the field.
You are talking about the exceptional case of typing a character whose directionality is opposite the text field’s directionality, right?
> In addition, shift-right-arrow expands the selection to the left.
This is a separate issue. Some bugs in arrow key behavior have been fixed, and addressing some bugs involving arrow-selection requires supporting multiple-range selections first. (In reply to
comment #3
)
> Cocoa shows a split caret in the instances where we get it wrong (at the > ends).
WebKit doesn’t support a split caret yet (see
bug 3710
). WebKit’s caret positioning in OS X matches that of Cocoa when the optional split caret feature is turned off.
mitz
Comment 5
2016-01-17 12:32:29 PST
(In reply to
comment #4
)
> WebKit’s caret positioning in OS X matches that of Cocoa when the optional split > caret feature is turned off.
(Meaning WebKit draws only the primary caret).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug