CSS caret-color Property Reference

The CSS caret-color property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

CSS caret-color Property Reference

The CSS caret-color property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

caret-color overview

The CSS caret-color property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

caret-color formal syntax
FieldValue
Formal syntaxauto | <color>
Initial valueauto
Applies totextOrElementsThatAcceptInput
InheritedYes
Percentagesno
Computed valueasAutoOrColor
Animation typecolor
Mediainteractive
Specification groupCSS Basic User Interface
StatusStandard

Practical examples

These declarations demonstrate valid ways to set caret-color. The initial and inherit global keywords remain available even when a property-specific value is preferable.

caret-color live example
CSS .reset-example { caret-color: initial; } .inherit-example { caret-color: inherit; } @supports (caret-color: initial) { .supported { caret-color: initial; } }

Related references

Description

The CSS caret-color property is a standard property in CSS Basic User Interface. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: caret-color
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies