Project / 06 · Browser Primitives

Caret Geometry

ALPHA

Reliable viewport coordinates for carets in inputs, textareas and editable DOM, with observation and virtual references for floating UI.

Purpose

Resolves caret geometry in viewport-relative CSS pixels so a compatible positioner can place floating content.

Source

Scope & ownership

  • What it owns

    Caret measurement for supported inputs, textareas, contenteditable, Range and Selection; virtual references and caret observation.

    Source

Boundaries & limitations

What the application owns

Floating placement, collision detection, portals, overlay semantics and surrounding layout tracking. Password inputs are unsupported.

Source

Install

npm install @nipe-solutions/caret-geometry@0.1.0-alpha.0

MIT license · @nipe-solutions/caret-geometry · 0.1.0-alpha.0