@@ -12,10 +12,6 @@ Remaining work, known bugs, and planned improvements.
1212
1313 ## Bugs / Spec Violations
1414
15-- ~~๐ง **TextInput cursor movement doesn't handle multi-codepoint graphemes** โ Fixed: `text-edit.ts` now uses `Intl.Segmenter` with grapheme granularity for `deleteBackward`, `deleteForward`, and `moveCursor` (left/right). Multi-codepoint characters (emoji, ZWJ sequences, combining marks) are treated as single units.~~
16-
17-- ~~๐ง **Controlled-focus TextInput traps Tab traversal** โ Already works: `lastFocusedIndex` tracks which element was just Escaped from, and Tab/Shift+Tab advance past it. Added regression tests confirming Escape+Tab correctly reaches subsequent focusable elements.~~
18-
1915 - ๐ง **Scrollbar thumb position ignores padding** โ `paintScrollbar` in `paint.ts` computes `maxOffset = contentHeight - rect.height` without accounting for container padding, while the scroll clamping logic uses `contentHeight + padY - rect.height`. For padded scrollable containers the thumb position is slightly off.
2016
2117 - ๐ง **Duplicate max scroll offset calculation** โ `getMaxScrollOffset` in `cel.ts` and `computeMaxScrollOffset` in `paint.ts` implement the same logic. Should be extracted to a shared function.
@@ -24,14 +20,6 @@ Remaining work, known bugs, and planned improvements.
2420
2521 - ๐ง **`space-between` + `gap` double-spaces children** โ When both `justifyContent: "space-between"` and `gap` are set, children get `gap` spacing plus the distributed remaining space on top. The remaining-space calculation subtracts `totalGap` first, then `space-between` distributes what's left as extra gap โ so the effective gap is `gap + betweenGaps[i]`. CSS flex doesn't stack `space-between` on top of `gap` this way. The spec doesn't define this interaction.
2622
27-- ~~๐ง **TextInput invisible after value cleared externally** โ Fixed: `getTextInputCursor` now clamps the stored cursor to `value.length`. Previously, clearing the value (e.g. after submit) left a stale cursor position in the WeakMap, causing auto-scroll to push all content out of view on subsequent typing.~~
28-
29-- ~~๐ง **Cross-axis constraints not applied in layout** โ Fixed: `minWidth`/`maxWidth`/`minHeight`/`maxHeight` are now applied on the cross axis during layout (both in intrinsic sizing and during child positioning). This enables the autogrowing TextInput pattern (`maxHeight` on TextInput inside HStack).~~
30-
31-- ~~๐ง **TextInput cursor was static color-inversion instead of native blinking** โ Fixed: switched from painting an inverted cell to positioning the real terminal cursor at the TextInput's cursor location. The terminal provides native blinking for free. Cursor is hidden when no TextInput is focused.~~
32-
33-- ~~๐ง **Color theme doesn't respect terminal 16 color setup** -- Fixed: replaced named colors (`"red"`, `"white"`, etc.) with numbered palette slots (`"color00"`โ`"color15"`). Added `Theme` type for custom color mappings, `defaultTheme` (ANSI 16), and `cel.init(terminal, { theme })` API. Spec updated with Color System section. No more confusing `"white"` vs terminal default.~~
34-
3523 ---
3624
3725 ## API Improvements