Property
|
Chrome
|
firefox
|
microsoft edge
|
Opera
|
caret-color
|
57.0
|
53.0
|
79.0
|
44.0
|
Value
|
Description
|
auto
|
Default. Browsers uses the currentColor for the caret
|
color
|
Specifies a color to use for the caret. All legal color values can be used (rgb, hex, named-color, etc). For more information on legal values
|
initial
|
Set this property to its default value.
|
inherit
|
Inherits this property from its parent element.
|
Default value:
|
Auto
|
Version:
|
CSS3
|
inherited
|
Yes
|
Animatable
|
No
|
JavaScript syntax:
|
object.style.caretColor="red"
|