CSS caret Property Reference

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

CSS caret Property Reference

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

Updated 2026-08-12

caret overview

The CSS caret 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 formal syntax
FieldValue
Formal syntax<'caret-color'> || <'caret-animation'> || <'caret-shape'>
Initial valuecaret-color, caret-animation, caret-shape
Applies totextOrElementsThatAcceptInput
InheritedYes
Percentagesno
Computed valuecaret-color, caret-animation, caret-shape
Animation typecaret-color, caret-animation, caret-shape
Mediainteractive
Specification groupCSS Basic User Interface
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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