property

Caret shape — CSS reference

Requests a block-shaped insertion indicator instead of the usual thin bar. This emerging declaration is feature-detected; unsupported engines retain the default or HTML fallback.

Formal Syntax & Structure

css syntaxcss
caret-shape: block;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>caret-shape</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}@supports (caret-shape:block){#a{caret-shape:block}}</style><body><label>Text <input id="a" value="Example"></label></body></html>
CSS Reference