Skip to content

PositionValue

PositionValue = number | `${number}%`

Defined in: ui/src/types.ts:110

Offset for a position: "absolute" edge. A raw number is pixels; a "<n>%" string resolves against the containing block (the nearest position: "relative" ancestor’s content box) — the same reference box CSS uses. So top: "100%" means “the containing block’s full height down from its top edge”, i.e. flush against its bottom. This is what lets edge-relative overlays (tooltips, dropdowns) anchor to a shrink-wrapped trigger without measuring it.