Repository navigation
fix: keep each corner's own rounding on a ring the floating box draws while it moves - #6794
Merged
Merged
Conversation
… 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
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.
Five browser tests have failed on
mainsince #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.jsdrew 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_edgecompares 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.Tests updated to #6773's design (its description and the
response.cssandannotation-chrome.cssrules 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-insetinside 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, whereelementFromPointreturns 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:runtimeandpnpm run check:browser.Closes #6792 — automated triage