Repository navigation
Stand a card's stuck head on its actions' line in every engine - #4176
Merged
Merged
Conversation
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
leaf-agent
approved these changes
Oct 26, 2026
This was referenced Oct 26, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) andshowReturnTurn, read the slot through a newgeometry.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 inCanvas.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_itscrolls 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 onmainin each engine.test_the_thread_card_opens_on_its_latest_message_under_its_own_namereads the stuck line from the slot rather than the padding, and again holds the fade's top to the stuck name's lower edge.