New issue
Advanced search Search tips

Issue 675817 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

API to change caret color/width

Project Member Reported by samsmlee@google.com, Dec 20 2016

Issue description

Android Views offer an API called android:textCursorDrawable which lets developers change caret color/shape:
https://developer.android.com/reference/android/R.attr.html#textCursorDrawable

Please provide a similar API for WebView/Chrome.
 
Status: Available (was: Untriaged)
Labels: Needs-Feedback
There's an existing implementation of caret-color underway:  issue 665422 

Are you after caret-shape (https://drafts.csswg.org/css-ui-4/#caret-shape) or something else that controls the caret width?

Comment 4 by samsmlee@google.com, Dec 21 2016

It's great to hear that the caret-color support is coming.
I am more after caret width (mainly to have the same look/feel of Android's EditText)
Labels: -Needs-Feedback
Note that caret width isn't currently part of the spec, but caret-shape is. Caret width was mentioned as a possible extension to the caret spec in this post on the www-style list: https://lists.w3.org/Archives/Public/www-style/2011Nov/0772.html

You could ask www-style for caret-width to be added to the CSS UI 4 spec
Status: WontFix (was: Available)
Closing as WontFix as there is nothing in the spec currently for caret width. Will reopen in future if this feature is included in the spec.

Sign in to add a comment