Repository navigation
Keep a mark's preview clear of the mark on the next line, and read the panel field's place from its words - #5993
Merged
Merged
Conversation
…ves still #5963 runs the field's slot out to the panel's edges while it holds the caret, by a negative margin and a padding that keep its words where they stood. test_an_answer_the_user_waits_for_grows_the_view_up_to_its_cap read the slot's top, which that ring moves 6px up (848 to 842) once the user has written a reply. It has failed since #5963, and passes with the styles of #5963's parent. It now reads the words' top, which is what "the field stays where it is" protects, and passes, as does the other test reading the same probe. > _This was written by Claude Code on behalf of max-sixty_
A preview takes the first side whose room holds it clear of every other control, which it finds by hit tests across the box it would draw. Another thread's passage mark is a range with no element of its own, so no hit test found it: a mark's preview stood below its line over the mark on the next one, and the press the pointer went on to make there landed on the preview and only put it away. In a paragraph the preview didn't even test its own holder's other lines. The range's owner now says where a mark lies under a point (preview.js, `declareRanges`; anchor-paint.js answers from `markHit`, the hit a press reads), and a range's preview tests every line of its paragraph but its own. The mark's preview now stands above, clear of the next mark. A caret lookup per sampled point measured about 3 µs on LONG_PAGE, as an elementsFromPoint does. test_a_mark_s_preview_stands_clear_of_the_mark_on_the_next_line holds it on both engines and fails without either part. test_marked_words_are_seen_and_told_apart no longer moves the pointer off the first mark before pressing the next. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 14, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 15, 2026
anchor-paint.js conflicted on its imports: main's #5993 imports declareRanges from preview.js for the mark box a preview keeps clear of, and this branch imports upFrom from shadow.js for the elements holding marked words. Both stay.
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.
Two follow-ups from #5989.
preview.js,declareRanges;anchor-paint.jsanswers frommarkHit). A range's preview also now tests the other lines of its own paragraph. The preview now stands above the mark instead. A caret lookup per sampled point costs about 3 µs onLONG_PAGE, the same aselementsFromPoint. The newtest_a_mark_s_preview_stands_clear_of_the_mark_on_the_next_linefails without either part, on both engines.test_an_answer_the_user_waits_for_grows_the_view_up_to_its_capis not a macOS-only failure, as Fix three more tests that fail only on macOS: a merge film cue, a wheel's box, a card's answer placement #5989 said: Run the panel field's box to the panel's edges, on the anchored box's ground, while it holds the caret #5963 broke it. While the panel field holds the caret, Run the panel field's box to the panel's edges, on the anchored box's ground, while it holds the caret #5963 runs the field's slot out to the panel's edges, which moves the slot's top 6px without moving its words. The test read the slot's top. It now reads the words' top, which is what "the field stays where it is" protects. It passes with Run the panel field's box to the panel's edges, on the anchored box's ground, while it holds the caret #5963's parent's styles and fails with Run the panel field's box to the panel's edges, on the anchored box's ground, while it holds the caret #5963's.pnpm run checkandpnpm run test:runtimepass, as do the preview placement, comment-mark and margin-entry tests and both tests that read the panel's growth probe.