Project / 06 · Browser Primitives
Caret Geometry
ALPHAReliable 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.
SourceScope & 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.
SourceInstall
npm install @nipe-solutions/caret-geometry@0.1.0-alpha.0