css.properties

caret-color

The caret-color property specifies the color of the text input caret.

Formal Syntax

caret-color = auto | <color> <color> = <color-base> | currentColor | <system-color> | <contrast-color()> | <device-cmyk()> | <light-dark()>

See specification

JavaScript Access

// Access via element.style element.style.caretColor = "auto";

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
caret-color575311.179
auto575311.179
currentColor575311.179
transparent575311.179

Related Properties