Bug 71189
Summary: | unicode-bidi:-webkit-plaintext should affect caret in textarea | ||
---|---|---|---|
Product: | WebKit | Reporter: | Aharon (Vladimir) Lanin <aharon> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | aharon, ahmad.saleem792, leviw, mmaxfield, playmobil, rniwa, xji |
Priority: | P2 | Keywords: | BlinkMergeCandidate |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 50910 |
Aharon (Vladimir) Lanin
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>א!</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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
https://src.chromium.org/viewvc/blink?view=revision&revision=176151
&
https://src.chromium.org/viewvc/blink?view=revision&revision=181701
&
https://src.chromium.org/viewvc/blink?view=revision&revision=192531
Ahmad Saleem
(In reply to Ahmad Saleem from comment #1)
> https://src.chromium.org/viewvc/blink?view=revision&revision=176151
>
> &
>
> https://src.chromium.org/viewvc/blink?view=revision&revision=181701
>
> &
>
> https://src.chromium.org/viewvc/blink?view=revision&revision=192531
https://github.com/chromium/chromium/commit/5ad4b62b7504bd372e5e443b3a856bb5b40ed20c
https://github.com/chromium/chromium/commit/edfe20c546261a844a0f2b01e0addec9fef4c6d9
https://github.com/chromium/chromium/commit/68f6387af2be2aa63d02b5c66ca0c730ce528e59