Repository navigation
Report allocated sample views and keep offscreen drafts painted - #1686
Merged
Merged
Conversation
leaf-agent
reviewed
Oct 3, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new wheel-return test fails in both pane variants on this head: its target-pixel check reads antialiased heading text after the red target has scrolled away. The suggested marker-specific threshold makes all four variants pass.
leaf-agent
approved these changes
Oct 3, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 3, 2026
A rejected insertion sometimes stayed invisible after Undo in the [full main run](https://github.com/max-sixty/leaf/actions/runs/37144903078). The decision hid the suggestion's entire wrapper with `display: none`; after Undo removed the decision marks, the wrapper and its text sometimes still had no layout rectangle. The retired slot already hides the rejected words, so this change keeps the empty wrapper in the layout tree for Undo to fill again. The existing margin journey now checks that rejection hides the inserted words and Undo restores every suggestion before comparing pin positions. On the original CSS, 14 of 18 loaded copies failed; with this change, 18 of 18 passed. Six focused suggestion, Undo, and gallery rest checks also passed. Refs #1592. The separate sample-view HTTP 400 failures in that main run are covered by #1686. Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 3, 2026
Floating comment editors and thread cards now share one attachment reading and plane decision. CSS grid allocates the editor, media, choices and More control within Floating UI's bounds, replacing separate control-width sums and editor-height subtraction. Floating UI's platform supplies the scale even when an offscreen passage leaves a zero-height reference. Markers and menu options use one reading presenter, including accessible labels, workflow receipts and unread state. Initial placement reserves the future card's footprint so typing at the right edge keeps the editor's position. Browser regressions cover media and choices beside a scrolling draft, withholding and restoring the complete draft in a short window, and a scaled draft whose passage scrolls away. After integrating main, 23 focused browser cases, 195 runtime tests and lint pass. The local full suite passed 2,062 cases with one skip and one wheel-return paint failure that also reproduces on the merged baseline; its separate repair is owned by [PR #1686](#1686). > _This was written by Codex on behalf of max-sixty_
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.
Browser checks failed when connected gallery samples submitted unallocated 0×0 viewports that the server rejected with HTTP 400, and when Chromium stopped painting a floating draft after its scrolled anchor was released, despite valid fixed window geometry.
The shared context observer now waits for positive dimensions; existing resize events and the heartbeat resume reporting when space returns. Floating editors and thread cards have independent compositing while attached to the window, keeping the previous anchor’s visibility state from suppressing their paint.
A served sample regression spans positive allocation, a connected 0×0 interval covering the heartbeat, and accepted recovery from the same session. The wheel-return test now captures the actual outgoing painted window position before observing the return and recognizes its saturated fixture marker through JPEG compression, excluding the tinted heading pixels reported by Linux. Its original one-pixel attachment assertion still rejects a deliberately shifted returning frame.
Validation: the original context module fails with two rejected zero-sized reports. The corrected module passes the regression, scheme/tab controls, and all 18 loaded restored-gallery copies. A standalone HTML/CSS reproduction confirms the paint failure. Eight focused wheel-return and editor/card controls pass; the shifted-return fault still fails. The integrated everyday gate passes 2,063 tests with one platform-specific skip, all 195 runtime tests and pre-commit pass, and independent review covers both repairs.