Skip to content

Fix: the checkbox's hidden input stretching a page; duplicate ids inside a LoadingShape - #114

Merged
bmjcoding merged 2 commits into
mainfrom
claude/cimip-faults-mirror-twin
Nov 22, 2026
Merged

bmjcoding merged 2 commits into
mainfrom
claude/cimip-faults-mirror-twin

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

What

CIMIP's browser suite found two faults (relayed by CIMIP's lead on 2026-11-22). CIMIP has a workaround for each; these are the real fixes.

  1. A checkbox's hidden form input stretched the page.
    • Basalt made the mirror input absolute at its place in the flow. In a scrolling list that isn't positioned itself, under a sticky or positioned ancestor, the input escaped the list's clipping. In CIMIP, 20 rows made the page about 860px taller and pushed a sticky foot off screen.
    • It now sits at the top start of its containing block (inset: 0 auto auto 0), the way Base UI's own fixed input sat at the viewport's corner. It still isn't a layer, so the gain from the earlier change is kept.
  2. A LoadingShape held the app's ids twice.
    • The shape draws the app's own parts, twice with a prefill: the drawing and its twin. CIMIP's getElementById found the inert copy, so "Review" scrolled to it and focus failed.
    • Every id inside the shape now moves to data-shape-id, on mount and whenever one is set again.
    • The README says a test can skip the shape with .basalt-bones.

Review

These are engineering fixes that put back documented behaviour, so no panel was needed. Astra did not review the code.

Checks

  • Tests: new tests are in test/mirror-and-shape-ids.test.mjs. They were not run. The owner paused tests until every fix has shipped ("we need to pause on tests until we've shipped all of the fixes/changes").
  • Sizes: export-sizes.json was not re-recorded.
  • Lint and typecheck: passed.

🤖 Generated with Claude Code

bmjcoding and others added 2 commits November 22, 2026 17:50
…LoadingShape move to data-shape-id

Two faults the first app's browser suite found (relayed 2026-11-22). A checkbox's hidden form input was absolute at its place in the flow, so
in a scrolling list that is not itself positioned, under a sticky or positioned ancestor, it escaped the list's clipping and stretched the
page (20 rows made it about 860px taller). It now sits at the top start of its containing block, as Base UI's fixed input sat at the
viewport's. A LoadingShape draws the app's parts, twice with a prefill, so it held the app's ids twice and getElementById found the inert
copy; each id inside the shape now moves to data-shape-id, and again whenever one is set. Tests added (not run: tests paused by the owner).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bmjcoding
bmjcoding merged commit f0ef4d9 into main Nov 22, 2026
1 of 2 checks passed
@bmjcoding
bmjcoding deleted the claude/cimip-faults-mirror-twin branch November 22, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant