Bug 71189 - unicode-bidi:-webkit-plaintext should affect caret in textarea
Summary: unicode-bidi:-webkit-plaintext should affect caret in textarea
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks: 50910
  Show dependency treegraph
 
Reported: 2011-10-30 10:50 PDT by Aharon (Vladimir) Lanin
Modified: 2024-10-05 03:29 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aharon (Vladimir) Lanin 2011-10-30 10:50:20 PDT
Currently, the caret in <textarea> is affected only by the CSS direction, even for unicode-bidi:-webkit-plaintext. It should work in an LTR manner in an LTR paragraph and in an RTL manner in an RTL paragraph, as determined by -webkit-plaintext.

Test case(s):
1. Navigate to data:text/html,<textarea style="unicode-bidi:-webkit-plaintext; direction:rtl"></textarea> or data:text/html,<textarea dir=auto>&#x05d0;!</textarea>
2. Put the focus in the textarea, press End, and press Enter.
3. Type "hello!" and note that the text is rendered correctly LTR, i.e. as "hello!" and not as "!hello".
4. However, note the visual location of the caret while typing. It stays to the left of the "h" throughout. It should be to the right of the last character typed in.