Skip to content

fix: keep each corner's own rounding on a ring the floating box draws while it moves - #6794

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6792
Nov 23, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6792

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Five browser tests have failed on main since #6773 ran a thread card's reply box to the card's edges. One caught a real defect, fixed here; the other four asserted layouts #6773 deliberately replaced and now assert the new ones.

The defect. #6773 squared the floating panel field's corners where the field doesn't meet the panel's edge, but browser/runtime/box-motion.js drew a moving part's ring, fill and clip with the top-left radius at every corner. So when the field gives up a line, its square right corners turn round for the length of the tween and snap back square at rest. The motion now reads each corner's radius and grows only the rounded ones, as the browser draws an outline. test_a_line_the_field_gives_up_rides_the_box_s_top_edge compares the tween's first frame with the panel at rest: 352 px differed on main against its tolerance of 300, and 234 with this change (235 at #6773's parent), so the tolerance stays as it is.

The field at rest, and the tween's first frame on main and with this change

Tests updated to #6773's design (its description and the response.css and annotation-chrome.css rules it added state each one):

  • test_inline_thread_surface_has_room_without_focus_reflow: the seated card's reply row now meets the card's hairline (1px in), so the 3px clearance check covers the thread's controls and messages and a separate assertion pins the reply row to the card's sides and foot.
  • test_a_diff_conversation_s_reply_rests_as_the_margin_card_s_field: Run a thread card's reply box to the card's edges, and stand every thread's words one inset in #6773 made a card's reply box, in the margin or seated in a widget, draw a rule over its words at rest rather than a frame ("The user chose this over the box at the card's padding in a field's frame"). The test now expects the rule and no frame, as a margin card's reply shows.
  • test_the_response_field_grows_across_its_bar: a sent message ends at the card's padding while the reply box runs over it, so the message's right edge stands one --lf-comment-inset inside the reply's.
  • test_drawing_preview_contains_page_content_and_freezes_it[dark-True]: at 390px the comment box now stands 6px nearer the window's edge, so the 44px touch probe's left points fell at x = −2, off-screen, where elementFromPoint returns nothing. Every on-screen probe point still hit the button. The probe is now clamped to the window, since no finger presses past its edge.

All five pass by node id, along with 62 more tween, ring and motion tests in the floating panel, card reply and Send placement files, pnpm run test:runtime and pnpm run check:browser.

Closes #6792 — automated triage

… while it moves

#6773 squared the floating panel field's corners where it doesn't meet the panel's edge, but box-motion.js drew a moving part's ring, fill and cut with the top-left radius at every corner, so a line removed from the field rounded its square corners for the tween's length. The motion now reads each corner's radius and grows only the rounded ones. test_a_line_the_field_gives_up_rides_the_box_s_top_edge failed on this (352 px moved against 300) and passes again (234, as before #6773).

Four tests asserted layouts #6773 replaced, and now assert the new ones:
- an inline thread's reply row meets the seated card's hairline, while its controls and messages keep their room;
- a seated diff conversation's reply box draws a rule over its words rather than a frame, as a margin card's does;
- a sent message in a margin card ends at the card's padding, one comment inset inside its reply box, which runs over that padding;
- a drawing control's 44px touch reach is read up to the window's edge, which the comment box now stands 6px nearer at 390px.

Closes #6792
@leaf-agent
leaf-agent merged commit 74ca126 into main Nov 23, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6792 branch November 23, 2026 00: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.

Five thread, panel and drawing layout tests fail on main since #6773 ran the reply box to the card's edges

1 participant