caret-shape
Limited availability70% of usersExperimental
Determines the visual shape of the text cursor. You can choose between the standard vertical bar, a block or an underscore (terminal-style).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- Yes
- Applies to
- text or elements that accept input
- Animation type
- byComputedValueType
Quick example
.retro-terminal {
/* Changes the cursor to a terminal-style block */
caret-shape: block;
}Values
autobarblockunderscorecaret-shape browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage70%of people can use this30% use a browser without it.
Browsers
144+
144+Mobile
144+Android