monks/caret_shape

{{SeeCompatTable}}

The caret-shape CSS property sets the shape of the insertion caret, the visible marker that appears in editable elements to indicate where the next character will be inserted or deleted.

Values

pub const auto_: #(String, String)
  • : The default value. The browser determines the caret shape. This typically follows platform conventions and may change based on context.
pub const bar: #(String, String)
  • : The caret appears as a thin vertical line at the insertion point, positioned between characters rather than over them.
pub const block: #(String, String)
  • : The caret appears as a rectangle that overlaps the next character after the insertion point. If no character follows, it appears after the last character.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for caret-shape

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const underscore: #(String, String)
  • : The caret appears as a thin horizontal line underneath the next character after the insertion point. If no character follows, it appears after the last character.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for caret-shape. It will be wrapped in var() and have -- prepended.

Search Document