CKTIS / CSS
caret-color — insertion caret color
The caret-color property sets the color of the caret marking where text will be inserted. It is inherited and does not change the mouse pointer.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
caret-color: [ auto | <color> ]{1,2};caret-color sets the insertion caret's color in an area that accepts text input, such as an editable textarea. It does not set the mouse pointer's color. The cursor property selects a pointer type or image; it does not set the pointer's color either.
The initial value is auto, and the property is inherited. With auto, the browser should use currentColor, but may choose another color for visibility. An explicit <color> sets the caret's color; transparent can hide it, making editing harder.
The CSS UI Level 4 draft allows an optional second value: it sets the color of text overlapped by a block caret. It has no effect on bar or underscore carets; omission means auto. This is draft syntax, not confirmation of Chromium 152 support. The example uses one value and requires local verification.
In the example, click the field and move the insertion point with the arrow keys. Expect a red caret with dark text on a white background. Blinking depends on the platform; this property alone does not control its timing.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>caret-color</title>
<style>
textarea {
color: #222222;
background: #ffffff;
caret-color: #c00000;
font: 20px monospace;
}
</style>
<label for="editor">Text</label>
<textarea id="editor" rows="3" cols="24">Edit this text.</textarea>
</html>Result
After focusing the textarea: dark text on a white background, with a red insertion caret when visible.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.