← Back to release summary

CSS caret-shape property

Category
CSS
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

The shape of the caret in native applications is most commonly a vertical bar, an underscore or a rectangular block. In addition, the shape often varies depending on the input mode, such as insert or replace. The CSS caret-shape property allows sites to choose one of these shapes for the caret inside editable elements, or leave the choice up to the browser. The recognized property values are auto, bar, block and underscore.

Motivation

To allow authors to specify the desired shape of the text insertion caret.

Standards & signals

Explainers: https://drafts.csswg.org/css-ui/#caret-shape

View on chromestatus.com