Skip to content

Stand a card's stuck head on its actions' line in every engine - #4176

Merged
max-sixty merged 3 commits into
mainfrom
card-head-strip-bleed
Oct 26, 2026
Merged

max-sixty merged 3 commits into
mainfrom
card-head-strip-bleed

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Firefox sticks a box in a subgrid scroller at the scroller's edge, ignoring its padding (Playwright Firefox 155 and desktop Firefox 158; Chromium and WebKit honour it). The margin card's transcript is such a scroller, with its focus-ring room as top padding, so in Firefox a stuck message head stood 6px above the ✓/✕ row and words scrolled under it showed over Resolve. In Chromium the head stood on the line, but the same room above it showed a line of words across the card once scrolled.

The room is now where the heads' slot starts (--lf-top-start), held open by an empty row before the first message, and heads stick at the slot (--lf-top), so no engine reads the padding. The two readers that took the padding for where heads stick, the card's fade (paintContinuation) and showReturnTurn, read the slot through a new geometry.slotTop. Once anything is scrolled away, the stuck head and the actions each paint paper over the room above their own track (--lf-thread-room-cover); at rest the room stays clear for focus rings. The head's cover is a shadow, since the head clips what it holds and anchors its Edit control at its middle; under forced colours, which drop shadows, the head opts its own ground and shadow out and paints them in Canvas.

This replaces the fade-band cover #4174 added (--lf-thread-fade-band), which painted the room from the card's fade layer and returns that layer to the plain fade below the stuck name: the cover now belongs to what stands on the line, so it needs no clear gap over a riding name, and it stays while focus is in the transcript, where the fade layer hides.

test_words_scrolled_past_a_card_head_show_nowhere_above_it scrolls a card in Chromium and Firefox, with and without forced colours, and holds the stuck head to the actions' line and the room above it to a clean band; it fails on main in each engine. test_the_thread_card_opens_on_its_latest_message_under_its_own_name reads the stuck line from the slot rather than the padding, and again holds the fade's top to the stuck name's lower edge.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 25, 2026 18:58
Firefox sticks a box in a subgrid scroller at the scroller's edge, ignoring
its padding (Playwright Firefox 155 and desktop Firefox 158; Chromium and
WebKit honour it). The card's transcript is such a scroller, with its
focus-ring room as top padding, so in Firefox a stuck head stood 6px above
the ✓/✕ row and words scrolled under it showed over Resolve. In Chromium the
head stood on the line, but the same room above it showed words across the
card.

The room is now where the heads' slot starts (`--lf-top-start`), held open by
a row before the first message, and heads stick at the slot (`--lf-top`), so
no engine reads the padding. Readers that took the padding for where heads
stick read the slot through `geometry.slotTop`: the card's continuation and
`showReturnTurn`. Once anything is scrolled away, the stuck head and the
actions each cover the room over their own track
(`--lf-thread-room-cover`); at the top a ring still has it. This supersedes
the fade-band cover on the unlanded animation-survey branch (ad98b6f): the
cover belongs to what stands on the line, so it needs no clear gap over a
riding name and stays while focus is in the transcript.

test_words_scrolled_past_a_card_head_show_nowhere_above_it holds both
engines to the line and to a clean band; it fails on the base in each.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The stuck head's cover was a shadow in the message's ground. Forced colours
drop shadows, so words showed again in the room above the head there, in both
engines; the head now opts its own ground and shadow out of forced colours, in
Canvas, while what it holds keeps them. And every head carries the cover while
the card is scrolled, so an arriving message's tint showed as a 6px tab above
its head; the cover is now paper.

test_words_scrolled_past_a_card_head_show_nowhere_above_it also runs under
forced colours, where it fails on the shadow-only cover.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	browser/runtime/annotation-overlay/annotation-chrome.css
#	browser/runtime/annotation-overlay/thread-preview.js
#	dist/kernel/kernel.json
#	dist/kernel/runtime/bundle-annotation-overlay.js
#	tests/browser/threads/test_layout.py
@max-sixty
max-sixty merged commit c22d9ca into main Oct 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the card-head-strip-bleed branch October 26, 2026 03:26
leaf-agent added a commit that referenced this pull request Oct 26, 2026
The first-unread-reply test still measured the transcript's top padding
after #4176 moved the header's reading line into `--lf-top`. That left
the assertion 6px above the correct landing. Include the declared inset
while retaining the 1px alignment requirement, unread markers, and
read-tracking checks. No product behavior changes.

The named browser test failed with `abs(21 - 15) == 6` before this
change and passes afterward (including scrolling and marking both
replies read).

Closes #4186 — automated triage

Co-authored-by: leaf-agent <[email protected]>
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.

2 participants