Skip to content

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
max-sixty merged 2 commits into
mainfrom
fix-mac-only-tests
Nov 15, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix-mac-only-tests

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Two follow-ups from #5989.

pnpm run check and pnpm run test:runtime pass, as do the preview placement, comment-mark and margin-entry tests and both tests that read the panel's growth probe.

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

…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_
@max-sixty
max-sixty merged commit 197c8be into main Nov 15, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix-mac-only-tests branch November 15, 2026 00:02
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.
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